Skip to content

Commit

Permalink
Enabled 4 trace call additional tests (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sixtysixter authored May 22, 2024
1 parent f344d96 commit 6245e5f
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 93 deletions.
106 changes: 74 additions & 32 deletions integration/mainnet/trace_call/test_03.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"value": "0x6EEAFD0CC46C860"
},
[
"vmTrace",
"trace",
"stateDiff"
"trace"
],
"0x4366AC"
]
Expand All @@ -26,40 +24,84 @@
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0xa25388e869b9660364448b364051b969760a2d9b": {
"balance": {
"*": {
"from": "0x88a479d4fab0",
"to": "0xa04b0103c2b0"
}
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0xa25388e869b9660364448b364051b969760a2d9b",
"gas": "0x6594",
"input": "0x00",
"to": "0x6fc82a5fe25a5cdb58bc74600a40a69c065263f8",
"value": "0x6eeafd0cc46c860"
},
"code": "=",
"nonce": {
"*": {
"from": "0x1",
"to": "0x2"
}
"result": {
"gasUsed": "0x2b61",
"output": "0x"
},
"storage": {}
"subtraces": 3,
"traceAddress": [],
"type": "call"
},
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x1a682e1d5e4daffba3",
"to": "0x1a682e3078ada573a3"
}
{
"action": {
"callType": "call",
"from": "0x6fc82a5fe25a5cdb58bc74600a40a69c065263f8",
"gas": "0x1bc",
"input": "0x16c72721",
"to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
"value": "0x0"
},
"code": "=",
"nonce": "=",
"storage": {}
"result": {
"gasUsed": "0x183",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
0
],
"type": "call"
},
{
"action": {
"callType": "call",
"from": "0x6fc82a5fe25a5cdb58bc74600a40a69c065263f8",
"gas": "0x58dc",
"input": "0x16c72721",
"to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
"value": "0x0"
},
"result": {
"gasUsed": "0x183",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
1
],
"type": "call"
},
{
"action": {
"callType": "call",
"from": "0x6fc82a5fe25a5cdb58bc74600a40a69c065263f8",
"gas": "0x8fc",
"input": "0x",
"to": "0xd24400ae8bfebb18ca49be86258a3c749cf46853",
"value": "0x6eeafd0cc46c860"
},
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [
2
],
"type": "call"
}
},
"trace": [],
"vmTrace": {
"code": "0x",
"ops": []
}
],
"vmTrace": null
}
}
}
Expand Down
48 changes: 19 additions & 29 deletions integration/mainnet/trace_call/test_09.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"value": "0xF1539B63D3691"
},
[
"vmTrace",
"trace",
"stateDiff"
"trace"
],
"0x5279A7"
]
Expand All @@ -26,35 +24,27 @@
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0x264b09a49e97ed8dd310816577f2de6ae22af5f4": {
"balance": "=",
"code": "=",
"nonce": {
"*": {
"from": "0x51",
"to": "0x52"
}
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0x264b09a49e97ed8dd310816577f2de6ae22af5f4",
"gas": "0x0",
"input": "0x",
"to": "0x9ea9b8a8c40d59dd55cd3abb5ebd7590bdcb9227",
"value": "0xf1539b63d3691"
},
"storage": {}
},
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x2314d0d6f2fb840b64",
"to": "0x2314d1103f5022fb64"
}
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"code": "=",
"nonce": "=",
"storage": {}
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
},
"trace": [],
"vmTrace": {
"code": "0x",
"ops": []
}
],
"vmTrace": null
}
}
}
Expand Down
48 changes: 19 additions & 29 deletions integration/mainnet/trace_call/test_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"value": "0xE0EC792E96800"
},
[
"vmTrace",
"trace",
"stateDiff"
"trace"
],
"0x5279A7"
]
Expand All @@ -26,35 +24,27 @@
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x2314d0d6f2fb840b64",
"to": "0x2314d0ea0c6d0e5b64"
}
"stateDiff": null,
"trace": [
{
"action": {
"callType": "call",
"from": "0xf9ec351e5c2eca57ce98d54ab39ef7f77a60041c",
"gas": "0x0",
"input": "0x",
"to": "0x434b6c1969067eb48e53baaa37dbbec6b17b83da",
"value": "0xe0ec792e96800"
},
"code": "=",
"nonce": "=",
"storage": {}
},
"0xf9ec351e5c2eca57ce98d54ab39ef7f77a60041c": {
"balance": "=",
"code": "=",
"nonce": {
"*": {
"from": "0x6",
"to": "0x7"
}
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"storage": {}
"subtraces": 0,
"traceAddress": [],
"type": "call"
}
},
"trace": [],
"vmTrace": {
"code": "0x",
"ops": []
}
],
"vmTrace": null
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions integration/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,8 @@
"mainnet/trace_block/test_19.tar", # diff on gasCost
"mainnet/trace_block/test_20.tar", # diff on callType

"mainnet/trace_call/test_03.json", # diff on callType
"mainnet/trace_call/test_07.json", # diff on callType
"mainnet/trace_call/test_08.tar", # diff on callType
"mainnet/trace_call/test_09.json", # diff on callType
"mainnet/trace_call/test_10.json", # diff on callType
"mainnet/trace_call/test_11.tar", # diff on callType
"mainnet/trace_call/test_12.json", # diff on callType
"mainnet/trace_call/test_15.json", # diff on callType
Expand Down

0 comments on commit 6245e5f

Please sign in to comment.