mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
fix: testcases
This commit is contained in:
parent
1a98c5cba2
commit
c0c129859d
6 changed files with 148 additions and 1 deletions
|
|
@ -75,5 +75,67 @@
|
||||||
"tracerConfig": {
|
"tracerConfig": {
|
||||||
"withLog": true
|
"withLog": true
|
||||||
},
|
},
|
||||||
"result": {"from":"0x4f5777744b500616697cb655dcb02ee6cd51deb5","gas":"0x33085","gasUsed":"0x1a9e5","to":"0x200edd17f30485a8735878661960cd7a9a95733f","input":"0xba51a6df0000000000000000000000000000000000000000000000000000000000000000","output":"0xba51a6df00000000000000000000000000000000000000000000000000000000","calls":[{"from":"0x200edd17f30485a8735878661960cd7a9a95733f","gas":"0x2c263","gasUsed":"0x1b0e4","to":"0x273930d21e01ee25e4c219b63259d214872220a2","input":"0xba51a6df0000000000000000000000000000000000000000000000000000000000000000","logs":[{"address":"0x200edd17f30485a8735878661960cd7a9a95733f","topics":["0xe1c52dc63b719ade82e8bea94cc41a0d5d28e4aaf536adb5e9cccc9ff8c1aeda"],"data":"0x0000000000000000000000004f5777744b500616697cb655dcb02ee6cd51deb5be96016bb57376da7a6d296e0a405ee1501778227dfa604df0a81cb1ae018598","position":"0x0"},{"address":"0x200edd17f30485a8735878661960cd7a9a95733f","topics":["0xacbdb084c721332ac59f9b8e392196c9eb0e4932862da8eb9beaf0dad4f550da"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000","position":"0x0"}],"value":"0x8ac7230489e80000","type":"CALLCODE"}],"logs":[{"address":"0x0000000000000000000000000000000000001010","topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x0000000000000000000000004f5777744b500616697cb655dcb02ee6cd51deb5","0x000000000000000000000000f8b483dba2c3b7176a3da549ad41a48bb3121069"],"data":"0x00000000000000000000000000000000000000000000000000119b54eb98e126000000000000000000000000000000000000000000000000b0983f1b83eec29000000000000000000000000000000000000000000000016969a0ba2c2d384d07000000000000000000000000000000000000000000000000b086a3c69855e16a00000000000000000000000000000000000000000000016969b2558118d12e2d","position":"0x1"}],"value":"0x8ac7230489e80000","type":"CALL"}
|
"result": {
|
||||||
|
"from": "0x4f5777744b500616697cb655dcb02ee6cd51deb5",
|
||||||
|
"gas": "0x33085",
|
||||||
|
"gasUsed": "0x1a9e5",
|
||||||
|
"to": "0x200edd17f30485a8735878661960cd7a9a95733f",
|
||||||
|
"input": "0xba51a6df0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"output": "0xba51a6df00000000000000000000000000000000000000000000000000000000",
|
||||||
|
"calls": [
|
||||||
|
{
|
||||||
|
"from": "0x200edd17f30485a8735878661960cd7a9a95733f",
|
||||||
|
"gas": "0x2c263",
|
||||||
|
"gasUsed": "0x1b0e4",
|
||||||
|
"to": "0x273930d21e01ee25e4c219b63259d214872220a2",
|
||||||
|
"input": "0xba51a6df0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x200edd17f30485a8735878661960cd7a9a95733f",
|
||||||
|
"topics": [
|
||||||
|
"0xe1c52dc63b719ade82e8bea94cc41a0d5d28e4aaf536adb5e9cccc9ff8c1aeda"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000004f5777744b500616697cb655dcb02ee6cd51deb5be96016bb57376da7a6d296e0a405ee1501778227dfa604df0a81cb1ae018598",
|
||||||
|
"position": "0x0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"address": "0x200edd17f30485a8735878661960cd7a9a95733f",
|
||||||
|
"topics": [
|
||||||
|
"0xacbdb084c721332ac59f9b8e392196c9eb0e4932862da8eb9beaf0dad4f550da"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
"position": "0x0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"value": "0x8ac7230489e80000",
|
||||||
|
"type": "CALLCODE"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x0000000000000000000000004f5777744b500616697cb655dcb02ee6cd51deb5",
|
||||||
|
"0x000000000000000000000000200edd17f30485a8735878661960cd7a9a95733f"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000b0767db57cd070aa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025af5ab0f2e870aa0000000000000000000000000000000000000000000000008ac7230489e80000",
|
||||||
|
"position": "0x0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x0000000000000000000000004f5777744b500616697cb655dcb02ee6cd51deb5",
|
||||||
|
"0x000000000000000000000000f8b483dba2c3b7176a3da549ad41a48bb3121069"
|
||||||
|
],
|
||||||
|
"data": "0x00000000000000000000000000000000000000000000000000119b54eb98e126000000000000000000000000000000000000000000000000b0983f1b83eec29000000000000000000000000000000000000000000000016969a0ba2c2d384d07000000000000000000000000000000000000000000000000b086a3c69855e16a00000000000000000000000000000000000000000000016969b2558118d12e2d",
|
||||||
|
"position": "0x1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"value": "0x8ac7230489e80000",
|
||||||
|
"type": "CALL"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -713,6 +713,19 @@
|
||||||
"gasUsed": "0x4e91",
|
"gasUsed": "0x4e91",
|
||||||
"to": "0xad3ecf23c0c8983b07163708be6d763b5f056193",
|
"to": "0xad3ecf23c0c8983b07163708be6d763b5f056193",
|
||||||
"input": "0x",
|
"input": "0x",
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x0000000000000000000000006e715ab4f598eacf0016b9b35ef33e4141844ccc",
|
||||||
|
"0x000000000000000000000000ad3ecf23c0c8983b07163708be6d763b5f056193"
|
||||||
|
],
|
||||||
|
"data": "0x000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000004563918244f40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004563918244f400000",
|
||||||
|
"position": "0x0"
|
||||||
|
}
|
||||||
|
],
|
||||||
"value": "0x4563918244f400000",
|
"value": "0x4563918244f400000",
|
||||||
"type": "CALL"
|
"type": "CALL"
|
||||||
},
|
},
|
||||||
|
|
@ -887,6 +900,19 @@
|
||||||
"type": "CALL"
|
"type": "CALL"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x000000000000000000000000ad3ecf23c0c8983b07163708be6d763b5f056193",
|
||||||
|
"0x0000000000000000000000006e715ab4f598eacf0016b9b35ef33e4141844ccc"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000000000000000000000000000022b1c8c12279fffff0000000000000000000000000000000000000000000000022b1c8c1227a000010000000000000000000000000000000000000000000000022b1c8c12279fffff0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000004563918244f3ffffe",
|
||||||
|
"position": "0x0"
|
||||||
|
}
|
||||||
|
],
|
||||||
"value": "0x22b1c8c12279fffff",
|
"value": "0x22b1c8c12279fffff",
|
||||||
"type": "CALL"
|
"type": "CALL"
|
||||||
}
|
}
|
||||||
|
|
@ -910,6 +936,19 @@
|
||||||
"type": "CALL"
|
"type": "CALL"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x000000000000000000000000ad3ecf23c0c8983b07163708be6d763b5f056193",
|
||||||
|
"0x0000000000000000000000006e715ab4f598eacf0016b9b35ef33e4141844ccc"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000000000000000000000000000022b1c8c12279fffff000000000000000000000000000000000000000000000004563918244f40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022b1c8c1227a000010000000000000000000000000000000000000000000000022b1c8c12279fffff",
|
||||||
|
"position": "0x0"
|
||||||
|
}
|
||||||
|
],
|
||||||
"value": "0x22b1c8c12279fffff",
|
"value": "0x22b1c8c12279fffff",
|
||||||
"type": "CALL"
|
"type": "CALL"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -261,6 +261,17 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"logs": [
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x00000000000000000000000050739060a2c32dc076e507ae1a893aab28ecfe68",
|
||||||
|
"0x00000000000000000000000088e1315687aec48a72786c6b3b3f075208b62713"
|
||||||
|
],
|
||||||
|
"data": "0x00000000000000000000000000000000000000000000000000179d63013c5654000000000000000000000000000000000000000000000006ad16c019b81a414100000000000000000000000000000000000000000000000024b9f2c5dc266dc6000000000000000000000000000000000000000000000006acff22b6b6ddeaed00000000000000000000000000000000000000000000000024d19028dd62c41a",
|
||||||
|
"position": "0x0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"address": "0x88e1315687aec48a72786c6b3b3f075208b62713",
|
"address": "0x88e1315687aec48a72786c6b3b3f075208b62713",
|
||||||
"topics": [
|
"topics": [
|
||||||
|
|
@ -275,6 +286,17 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"logs": [
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x0000000000000000000000006412becf35cc7e2a9e7e47966e443f295e1e4f4a",
|
||||||
|
"0x00000000000000000000000050739060a2c32dc076e507ae1a893aab28ecfe68"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000000000000000000000000000000429d069189e00000000000000000000000000000000000000000000000000000fa6f01b59360e70000000000000000000000000000000000000000000000006a8ecefb09f7c41410000000000000000000000000000000000000000000000000b7d1fb240980e70000000000000000000000000000000000000000000000006ad16c019b81a4141",
|
||||||
|
"position": "0x0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"address": "0x50739060a2c32dc076e507ae1a893aab28ecfe68",
|
"address": "0x50739060a2c32dc076e507ae1a893aab28ecfe68",
|
||||||
"topics": [],
|
"topics": [],
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,17 @@
|
||||||
"input": "0xba51a6df0000000000000000000000000000000000000000000000000000000000000000",
|
"input": "0xba51a6df0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
"output": "0xba51a6df00000000000000000000000000000000000000000000000000000000",
|
"output": "0xba51a6df00000000000000000000000000000000000000000000000000000000",
|
||||||
"logs": [
|
"logs": [
|
||||||
|
{
|
||||||
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
|
"topics": [
|
||||||
|
"0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
|
||||||
|
"0x0000000000000000000000000000000000000000000000000000000000001010",
|
||||||
|
"0x0000000000000000000000004f5777744b500616697cb655dcb02ee6cd51deb5",
|
||||||
|
"0x000000000000000000000000200edd17f30485a8735878661960cd7a9a95733f"
|
||||||
|
],
|
||||||
|
"data": "0x0000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000b0767db57cd070aa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025af5ab0f2e870aa0000000000000000000000000000000000000000000000008ac7230489e80000",
|
||||||
|
"position": "0x0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"address": "0x0000000000000000000000000000000000001010",
|
"address": "0x0000000000000000000000000000000000001010",
|
||||||
"topics": [
|
"topics": [
|
||||||
|
|
|
||||||
|
|
@ -1061,6 +1061,8 @@ func TestSignTransaction(t *testing.T) {
|
||||||
Alloc: types.GenesisAlloc{},
|
Alloc: types.GenesisAlloc{},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
_, acc := newTestAccountManager(t)
|
||||||
|
genesis.Alloc[acc.Address] = types.Account{Balance: big.NewInt(params.Ether)}
|
||||||
b := newTestBackend(t, 1, genesis, beacon.New(ethash.NewFaker()), func(i int, b *core.BlockGen) {
|
b := newTestBackend(t, 1, genesis, beacon.New(ethash.NewFaker()), func(i int, b *core.BlockGen) {
|
||||||
b.SetPoS()
|
b.SetPoS()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue