Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f468364e
Commit
f468364e
authored
Apr 01, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tests
parent
0a554a1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
main.go
cmd/evm/main.go
+2
-2
state_test.go
core/state/state_test.go
+1
-1
No files found.
cmd/evm/main.go
View file @
f468364e
...
...
@@ -61,8 +61,8 @@ func main() {
db
,
_
:=
ethdb
.
NewMemDatabase
()
statedb
:=
state
.
New
(
common
.
Hash
{},
db
)
sender
:=
statedb
.
NewStateObjec
t
(
common
.
StringToAddress
(
"sender"
))
receiver
:=
statedb
.
NewStateObjec
t
(
common
.
StringToAddress
(
"receiver"
))
sender
:=
statedb
.
CreateAccoun
t
(
common
.
StringToAddress
(
"sender"
))
receiver
:=
statedb
.
CreateAccoun
t
(
common
.
StringToAddress
(
"receiver"
))
receiver
.
SetCode
(
common
.
Hex2Bytes
(
*
code
))
vmenv
:=
NewEnv
(
statedb
,
common
.
StringToAddress
(
"evmuser"
),
common
.
Big
(
*
value
))
...
...
core/state/state_test.go
View file @
f468364e
...
...
@@ -68,7 +68,7 @@ func TestNull(t *testing.T) {
state
:=
New
(
common
.
Hash
{},
db
)
address
:=
common
.
HexToAddress
(
"0x823140710bf13990e4500136726d8b55"
)
state
.
NewStateObjec
t
(
address
)
state
.
CreateAccoun
t
(
address
)
//value := common.FromHex("0x823140710bf13990e4500136726d8b55")
value
:=
make
([]
byte
,
16
)
state
.
SetState
(
address
,
common
.
Hash
{},
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment