Skip to content

Commit

Permalink
eth/tracers: fix the testcase of empty code
Browse files Browse the repository at this point in the history
Signed-off-by: Delweng <delweng@gmail.com>
  • Loading branch information
jsvisa committed Sep 29, 2022
1 parent 388789b commit d572f7e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 34 deletions.
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracetest/prestate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestPrestateTracer(t *testing.T) {
testPrestateDiffTracer("prestateTracer", "prestate_tracer", t, func() interface{} { return new(prestateTrace) })
}

func TestPrestateWithCollectPostTracer(t *testing.T) {
func TestPrestateWithDiffModeTracer(t *testing.T) {
testPrestateDiffTracer("prestateTracer", "prestate_tracer_with_diff_mode", t, func() interface{} { return new(prePostStateTrace) })
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
"result": {
"0x0024f658a46fbb89d8ac105e98d7ac7cbbaf27c5": {
"balance": "0x0",
"nonce": 22,
"code": "0x"
"nonce": 22
},
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
"balance": "0x4d87094125a369d9bd5",
Expand All @@ -75,13 +74,11 @@
},
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
"balance": "0x1780d77678137ac1b775",
"nonce": 29072,
"code": "0x"
"nonce": 29072
},
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
"balance": "0x0",
"nonce": 0,
"code": "0x"
"nonce": 0
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@
"pre": {
"0x2a65aca4d5fc5b5c859090a6c34d164135398226": {
"balance": "0x9fb6b81e112638b886",
"nonce": 217865,
"code": "0x"
"nonce": 217865
},
"0xf0c5cef39b17c213cfe090a46b8c7760ffb7928a": {
"balance": "0x15b6828e22bb12188",
"nonce": 747,
"code": "0x"
"nonce": 747
}
},
"post": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,21 @@
"pre": {
"0x082d4cdf07f386ffa9258f52a5c49db4ac321ec6": {
"balance": "0xc820f93200f4000",
"nonce": 94,
"code": "0x"
"nonce": 94
},
"0x332b656504f4eabb44c8617a42af37461a34e9dc": {
"balance": "0x11faea4f35e5af80000",
"code": "0x",
"storage": {
"0x0000000000000000000000000000000000000000000000000000000000000000": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
},
"0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5": {
"balance": "0xbf681825be002ac452",
"nonce": 28922,
"code": "0x"
"nonce": 28922
},
"0x82effbaaaf28614e55b2ba440fb198e0e5789b0f": {
"balance": "0xb3d0ac5cb94df6f6b0",
"nonce": 1,
"code": "0x"
"nonce": 1
}
},
"post": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@
"pre": {
"0x2a65aca4d5fc5b5c859090a6c34d164135398226": {
"balance": "0x98e1c608601c2496b2",
"nonce": 218916,
"code": "0x"
"nonce": 218916
},
"0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b": {
"balance": "0x0",
Expand Down Expand Up @@ -303,13 +302,11 @@
},
"0xb834e3edfc1a927bdcecb67a9d0eccbd752a5bb3": {
"balance": "0xffe9b09a5c474dca",
"nonce": 975,
"code": "0x"
"nonce": 975
},
"0xd3cda913deb6f67967b99d67acdfa1712c293601": {
"balance": "0x4f5807198e238f13e",
"nonce": 283,
"code": "0x"
"nonce": 283
}
},
"post": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@
"pre": {
"0x0024f658a46fbb89d8ac105e98d7ac7cbbaf27c5": {
"balance": "0x0",
"nonce": 22,
"code": "0x"
"nonce": 22
},
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
"balance": "0x0",
"code": "0x"
"balance": "0x0"
},
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
"balance": "0x4d87094125a369d9bd5",
Expand All @@ -83,8 +81,7 @@
},
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
"balance": "0x1780d77678137ac1b775",
"nonce": 29072,
"code": "0x"
"nonce": 29072
}
},
"post": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@
},
"0x2a65aca4d5fc5b5c859090a6c34d164135398226": {
"balance": "0x326601cc6cf364f6b9",
"nonce": 12122,
"code": "0x"
"nonce": 12122
},
"0xd3cda913deb6f67967b99d67acdfa1712c293601": {
"balance": "0x1ff0509d9d6821e26",
"nonce": 138,
"code": "0x"
"nonce": 138
}
},
"post": {
Expand Down

0 comments on commit d572f7e

Please sign in to comment.