mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
fix tests
This commit is contained in:
parent
1c13317390
commit
e57ca8af41
7 changed files with 5 additions and 23 deletions
|
|
@ -321,7 +321,7 @@ func TestInternals(t *testing.T) {
|
||||||
byte(vm.LOG0),
|
byte(vm.LOG0),
|
||||||
},
|
},
|
||||||
tracer: mkTracer("prestateTracer", nil),
|
tracer: mkTracer("prestateTracer", nil),
|
||||||
want: fmt.Sprintf(`{"0x0000000000000000000000000000000000000000":{"balance":"0x0"},"0x00000000000000000000000000000000deadbeef":{"balance":"0x0","code":"0x6001600052600164ffffffffff60016000f560ff6000a0"},"%s":{"balance":"0x1c6bf52634000"}}`, originHex),
|
want: fmt.Sprintf(`{"0x00000000000000000000000000000000deadbeef":{"balance":"0x0","code":"0x6001600052600164ffffffffff60016000f560ff6000a0"},"%s":{"balance":"0x1c6bf52634000"}}`, originHex),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// CREATE2 which requires padding memory by prestate tracer
|
// CREATE2 which requires padding memory by prestate tracer
|
||||||
|
|
@ -340,7 +340,7 @@ func TestInternals(t *testing.T) {
|
||||||
byte(vm.LOG0),
|
byte(vm.LOG0),
|
||||||
},
|
},
|
||||||
tracer: mkTracer("prestateTracer", nil),
|
tracer: mkTracer("prestateTracer", nil),
|
||||||
want: fmt.Sprintf(`{"0x0000000000000000000000000000000000000000":{"balance":"0x0"},"0x00000000000000000000000000000000deadbeef":{"balance":"0x0","code":"0x6001600052600160ff60016000f560ff6000a0"},"%s":{"balance":"0x1c6bf52634000"}}`, originHex),
|
want: fmt.Sprintf(`{"0x00000000000000000000000000000000deadbeef":{"balance":"0x0","code":"0x6001600052600160ff60016000f560ff6000a0"},"%s":{"balance":"0x1c6bf52634000"}}`, originHex),
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
t.Run(tc.name, func(t *testing.T) {
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,8 @@
|
||||||
},
|
},
|
||||||
"result": {
|
"result": {
|
||||||
"0x0024f658a46fbb89d8ac105e98d7ac7cbbaf27c5": {
|
"0x0024f658a46fbb89d8ac105e98d7ac7cbbaf27c5": {
|
||||||
"balance": "0x0",
|
"balance":"0x0",
|
||||||
"nonce": 22
|
"nonce":22
|
||||||
},
|
},
|
||||||
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
|
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
|
||||||
"balance": "0x4d87094125a369d9bd5",
|
"balance": "0x4d87094125a369d9bd5",
|
||||||
|
|
@ -75,9 +75,6 @@
|
||||||
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
||||||
"balance": "0x1780d77678137ac1b775",
|
"balance": "0x1780d77678137ac1b775",
|
||||||
"nonce": 29072
|
"nonce": 29072
|
||||||
},
|
|
||||||
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
|
|
||||||
"balance": "0x0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,6 @@
|
||||||
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
||||||
"balance": "0x1780d77678137ac1b775",
|
"balance": "0x1780d77678137ac1b775",
|
||||||
"nonce": 29072
|
"nonce": 29072
|
||||||
},
|
|
||||||
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
|
|
||||||
"balance": "0x0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,6 @@
|
||||||
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
||||||
"balance": "0x1780d77678137ac1b775",
|
"balance": "0x1780d77678137ac1b775",
|
||||||
"nonce": 29072
|
"nonce": 29072
|
||||||
},
|
|
||||||
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
|
|
||||||
"balance": "0x0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
||||||
"balance": "0x1780d77678137ac1b775",
|
"balance": "0x1780d77678137ac1b775",
|
||||||
"code": "0x",
|
"code": "0x",
|
||||||
"nonce": "29072",
|
"nonce": 29072,
|
||||||
"storage": {}
|
"storage": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -74,9 +74,6 @@
|
||||||
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
"0xb436ba50d378d4bbc8660d312a13df6af6e89dfb": {
|
||||||
"balance": "0x1780d77678137ac1b775",
|
"balance": "0x1780d77678137ac1b775",
|
||||||
"nonce": 29072
|
"nonce": 29072
|
||||||
},
|
|
||||||
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
|
|
||||||
"balance": "0x0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,6 @@
|
||||||
"balance": "0x0",
|
"balance": "0x0",
|
||||||
"nonce": 22
|
"nonce": 22
|
||||||
},
|
},
|
||||||
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
|
|
||||||
"balance": "0x0"
|
|
||||||
},
|
|
||||||
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
|
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
|
||||||
"balance": "0x4d87094125a369d9bd5",
|
"balance": "0x4d87094125a369d9bd5",
|
||||||
"nonce": 1,
|
"nonce": 1,
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,6 @@
|
||||||
"balance": "0x0",
|
"balance": "0x0",
|
||||||
"nonce": 22
|
"nonce": 22
|
||||||
},
|
},
|
||||||
"0x1585936b53834b021f68cc13eeefdec2efc8e724": {
|
|
||||||
"balance": "0x0"
|
|
||||||
},
|
|
||||||
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
|
"0x3b873a919aa0512d5a0f09e6dcceaa4a6727fafe": {
|
||||||
"balance": "0x4d87094125a369d9bd5",
|
"balance": "0x4d87094125a369d9bd5",
|
||||||
"nonce": 1,
|
"nonce": 1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue