Skip to content

Commit d572f7e

Browse files
committed
eth/tracers: fix the testcase of empty code
Signed-off-by: Delweng <delweng@gmail.com>
1 parent 388789b commit d572f7e

File tree

7 files changed

+17
-34
lines changed

7 files changed

+17
-34
lines changed

eth/tracers/internal/tracetest/prestate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestPrestateTracer(t *testing.T) {
6060
testPrestateDiffTracer("prestateTracer", "prestate_tracer", t, func() interface{} { return new(prestateTrace) })
6161
}
6262

63-
func TestPrestateWithCollectPostTracer(t *testing.T) {
63+
func TestPrestateWithDiffModeTracer(t *testing.T) {
6464
testPrestateDiffTracer("prestateTracer", "prestate_tracer_with_diff_mode", t, func() interface{} { return new(prePostStateTrace) })
6565
}
6666

eth/tracers/internal/tracetest/testdata/prestate_tracer/simple.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959
"result": {
6060
"0x0024f658a46fbb89d8ac105e98d7ac7cbbaf27c5": {
6161
"balance": "0x0",
62-
"nonce": 22,
63-
"code": "0x"
62+
"nonce": 22
6463
},
6564
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
6665
"balance": "0x4d87094125a369d9bd5",
@@ -75,13 +74,11 @@
7574
},
7675
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
7776
"balance": "0x1780d77678137ac1b775",
78-
"nonce": 29072,
79-
"code": "0x"
77+
"nonce": 29072
8078
},
8179
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
8280
"balance": "0x0",
83-
"nonce": 0,
84-
"code": "0x"
81+
"nonce": 0
8582
}
8683
}
8784
}

eth/tracers/internal/tracetest/testdata/prestate_tracer_with_diff_mode/create.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@
5959
"pre": {
6060
"0x2a65aca4d5fc5b5c859090a6c34d164135398226": {
6161
"balance": "0x9fb6b81e112638b886",
62-
"nonce": 217865,
63-
"code": "0x"
62+
"nonce": 217865
6463
},
6564
"0xf0c5cef39b17c213cfe090a46b8c7760ffb7928a": {
6665
"balance": "0x15b6828e22bb12188",
67-
"nonce": 747,
68-
"code": "0x"
66+
"nonce": 747
6967
}
7068
},
7169
"post": {

eth/tracers/internal/tracetest/testdata/prestate_tracer_with_diff_mode/create_suicide.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,21 @@
7171
"pre": {
7272
"0x082d4cdf07f386ffa9258f52a5c49db4ac321ec6": {
7373
"balance": "0xc820f93200f4000",
74-
"nonce": 94,
75-
"code": "0x"
74+
"nonce": 94
7675
},
7776
"0x332b656504f4eabb44c8617a42af37461a34e9dc": {
7877
"balance": "0x11faea4f35e5af80000",
79-
"code": "0x",
8078
"storage": {
8179
"0x0000000000000000000000000000000000000000000000000000000000000000": "0x0000000000000000000000000000000000000000000000000000000000000000"
8280
}
8381
},
8482
"0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5": {
8583
"balance": "0xbf681825be002ac452",
86-
"nonce": 28922,
87-
"code": "0x"
84+
"nonce": 28922
8885
},
8986
"0x82effbaaaf28614e55b2ba440fb198e0e5789b0f": {
9087
"balance": "0xb3d0ac5cb94df6f6b0",
91-
"nonce": 1,
92-
"code": "0x"
88+
"nonce": 1
9389
}
9490
},
9591
"post": {

eth/tracers/internal/tracetest/testdata/prestate_tracer_with_diff_mode/inner_create.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@
207207
"pre": {
208208
"0x2a65aca4d5fc5b5c859090a6c34d164135398226": {
209209
"balance": "0x98e1c608601c2496b2",
210-
"nonce": 218916,
211-
"code": "0x"
210+
"nonce": 218916
212211
},
213212
"0x6c8f2a135f6ed072de4503bd7c4999a1a17f824b": {
214213
"balance": "0x0",
@@ -303,13 +302,11 @@
303302
},
304303
"0xb834e3edfc1a927bdcecb67a9d0eccbd752a5bb3": {
305304
"balance": "0xffe9b09a5c474dca",
306-
"nonce": 975,
307-
"code": "0x"
305+
"nonce": 975
308306
},
309307
"0xd3cda913deb6f67967b99d67acdfa1712c293601": {
310308
"balance": "0x4f5807198e238f13e",
311-
"nonce": 283,
312-
"code": "0x"
309+
"nonce": 283
313310
}
314311
},
315312
"post": {

eth/tracers/internal/tracetest/testdata/prestate_tracer_with_diff_mode/simple.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@
6363
"pre": {
6464
"0x0024f658a46fbb89d8ac105e98d7ac7cbbaf27c5": {
6565
"balance": "0x0",
66-
"nonce": 22,
67-
"code": "0x"
66+
"nonce": 22
6867
},
6968
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
70-
"balance": "0x0",
71-
"code": "0x"
69+
"balance": "0x0"
7270
},
7371
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
7472
"balance": "0x4d87094125a369d9bd5",
@@ -83,8 +81,7 @@
8381
},
8482
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
8583
"balance": "0x1780d77678137ac1b775",
86-
"nonce": 29072,
87-
"code": "0x"
84+
"nonce": 29072
8885
}
8986
},
9087
"post": {

eth/tracers/internal/tracetest/testdata/prestate_tracer_with_diff_mode/suicide.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,11 @@
8787
},
8888
"0x2a65aca4d5fc5b5c859090a6c34d164135398226": {
8989
"balance": "0x326601cc6cf364f6b9",
90-
"nonce": 12122,
91-
"code": "0x"
90+
"nonce": 12122
9291
},
9392
"0xd3cda913deb6f67967b99d67acdfa1712c293601": {
9493
"balance": "0x1ff0509d9d6821e26",
95-
"nonce": 138,
96-
"code": "0x"
94+
"nonce": 138
9795
}
9896
},
9997
"post": {

0 commit comments

Comments
 (0)