Skip to content

Commit

Permalink
integration_test: fix exp rsp traceCall/traceCallMany (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 authored Jul 16, 2024
1 parent 15c2c27 commit 5e467de
Show file tree
Hide file tree
Showing 18 changed files with 27,829 additions and 27,841 deletions.
122 changes: 61 additions & 61 deletions integration/mainnet/trace_call/test_07.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,71 +23,71 @@
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x2314d0d6f2fb840b64",
"to": "0x2314e70b4a815cab64"
}
},
"code": "=",
"nonce": "=",
"storage": {}
},
"0xee6c9b1e5e64e407acb41b448983116dea8902ec": {
"balance": {
"*": {
"from": "0x6ca8c0286a67800",
"to": "0x6b457ab00cdd800"
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x4b",
"to": "0x4c"
}
},
"storage": {}
"result": {
"output": "0x",
"stateDiff": {
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x2314d0d6f2fb840b64",
"to": "0x2314e70b4a815cab64"
}
},
"trace": [
{
"action": {
"from": "0xee6c9b1e5e64e407acb41b448983116dea8902ec",
"gas": "0x2daf8",
"init": "0x0a19b14a000000000000000000000000d4fa1460f537bb9085d22c7bccb5dd450ef28e3a0000000000000000000000000000000000000000000000000000000c3c11b1400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d2b5f3998317080000000000000000000000000000000000000000000000000000000000005279af000000000000000000000000000000000000000000000000000000021ac9e37b00000000000000000000000012a12562192bd96c0c9bda1f564681c256d71553000000000000000000000000000000000000000000000000000000000000001b1c8678b82a0cfb752734e66ddd0413f4df007f740faf855f0e3543beaacbda825f22b07885172fe452a5a1d0f000aa9295b8daa88ca9511310e3525d0c8d3ab40000000000000000000000000000000000000000000000000000000c3c11b140",
"value": "0x0"
},
"error": "stack underflow",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "create"
"code": "=",
"nonce": "=",
"storage": {}
},
"0xee6c9b1e5e64e407acb41b448983116dea8902ec": {
"balance": {
"*": {
"from": "0x6ca8c0286a67800",
"to": "0x6b457ab00cdd800"
}
],
"vmTrace": {
"code": "0x0a19b14a000000000000000000000000d4fa1460f537bb9085d22c7bccb5dd450ef28e3a0000000000000000000000000000000000000000000000000000000c3c11b1400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d2b5f3998317080000000000000000000000000000000000000000000000000000000000005279af000000000000000000000000000000000000000000000000000000021ac9e37b00000000000000000000000012a12562192bd96c0c9bda1f564681c256d71553000000000000000000000000000000000000000000000000000000000000001b1c8678b82a0cfb752734e66ddd0413f4df007f740faf855f0e3543beaacbda825f22b07885172fe452a5a1d0f000aa9295b8daa88ca9511310e3525d0c8d3ab40000000000000000000000000000000000000000000000000000000c3c11b140",
"ops": [
{
"cost": 187128,
"ex": {
"mem": null,
"push": [],
"store": null,
"used": 0
},
"idx": "0",
"op": "EXP",
"pc": 0,
"sub": null
}
]
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x4b",
"to": "0x4c"
}
},
"storage": {}
}
},
"trace": [
{
"action": {
"from": "0xee6c9b1e5e64e407acb41b448983116dea8902ec",
"gas": "0x2daf8",
"init": "0x0a19b14a000000000000000000000000d4fa1460f537bb9085d22c7bccb5dd450ef28e3a0000000000000000000000000000000000000000000000000000000c3c11b1400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d2b5f3998317080000000000000000000000000000000000000000000000000000000000005279af000000000000000000000000000000000000000000000000000000021ac9e37b00000000000000000000000012a12562192bd96c0c9bda1f564681c256d71553000000000000000000000000000000000000000000000000000000000000001b1c8678b82a0cfb752734e66ddd0413f4df007f740faf855f0e3543beaacbda825f22b07885172fe452a5a1d0f000aa9295b8daa88ca9511310e3525d0c8d3ab40000000000000000000000000000000000000000000000000000000c3c11b140",
"value": "0x0"
},
"error": "stack underflow (0 <=> 2)",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "create"
}
],
"vmTrace": {
"code": "0x0a19b14a000000000000000000000000d4fa1460f537bb9085d22c7bccb5dd450ef28e3a0000000000000000000000000000000000000000000000000000000c3c11b1400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d2b5f3998317080000000000000000000000000000000000000000000000000000000000005279af000000000000000000000000000000000000000000000000000000021ac9e37b00000000000000000000000012a12562192bd96c0c9bda1f564681c256d71553000000000000000000000000000000000000000000000000000000000000001b1c8678b82a0cfb752734e66ddd0413f4df007f740faf855f0e3543beaacbda825f22b07885172fe452a5a1d0f000aa9295b8daa88ca9511310e3525d0c8d3ab40000000000000000000000000000000000000000000000000000000c3c11b140",
"ops": [
{
"cost": 10,
"ex": {
"mem": null,
"push": [],
"store": null,
"used": 187118
},
"idx": "0",
"op": "EXP",
"pc": 0,
"sub": null
}
]
}
}
}
}
]
Binary file modified integration/mainnet/trace_call/test_08.tar
Binary file not shown.
122 changes: 61 additions & 61 deletions integration/mainnet/trace_call/test_12.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,71 +23,71 @@
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0x35f61dfb08ada13eba64bf156b80df3d5b3a738d": {
"balance": {
"*": {
"from": "0xd70b2e72bc56d13a3",
"to": "0xd70f4099e476bc063"
}
},
"code": "=",
"nonce": "=",
"storage": {}
},
"0xb7f819b983e0cbb0316786d7fba12e3b1e58da5f": {
"balance": {
"*": {
"from": "0x40f4b88d1f1ed7c",
"to": "0x3ce29164ff340bc"
}
},
"code": "=",
"nonce": {
"*": {
"from": "0xea6f",
"to": "0xea70"
}
},
"storage": {}
"result": {
"output": "0x",
"stateDiff": {
"0x35f61dfb08ada13eba64bf156b80df3d5b3a738d": {
"balance": {
"*": {
"from": "0xd70b2e72bc56d13a3",
"to": "0xd70f4099e476bc063"
}
},
"trace": [
{
"action": {
"from": "0xb7f819b983e0cbb0316786d7fba12e3b1e58da5f",
"gas": "0x4ad98",
"init": "0x071ccd0a00610023",
"value": "0x0"
},
"error": "stack underflow",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "create"
"code": "=",
"nonce": "=",
"storage": {}
},
"0xb7f819b983e0cbb0316786d7fba12e3b1e58da5f": {
"balance": {
"*": {
"from": "0x40f4b88d1f1ed7c",
"to": "0x3ce29164ff340bc"
}
],
"vmTrace": {
"code": "0x071ccd0a00610023",
"ops": [
{
"cost": 306584,
"ex": {
"mem": null,
"push": [],
"store": null,
"used": 0
},
"idx": "0",
"op": "SMOD",
"pc": 0,
"sub": null
}
]
}
},
"code": "=",
"nonce": {
"*": {
"from": "0xea6f",
"to": "0xea70"
}
},
"storage": {}
}
},
"trace": [
{
"action": {
"from": "0xb7f819b983e0cbb0316786d7fba12e3b1e58da5f",
"gas": "0x4ad98",
"init": "0x071ccd0a00610023",
"value": "0x0"
},
"error": "stack underflow (0 <=> 2)",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "create"
}
],
"vmTrace": {
"code": "0x071ccd0a00610023",
"ops": [
{
"cost": 5,
"ex": {
"mem": null,
"push": [],
"store": null,
"used": 306579
},
"idx": "0",
"op": "SMOD",
"pc": 0,
"sub": null
}
]
}
}
}
}
]
122 changes: 61 additions & 61 deletions integration/mainnet/trace_call/test_15.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,71 +23,71 @@
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": {
"output": "0x",
"stateDiff": {
"0x544731de2bc32c96198980f14923e50518ad6a1a": {
"balance": {
"*": {
"from": "0x1c6ac39cc5f495a1",
"to": "0x1c66f61143ad25a1"
}
},
"code": "=",
"nonce": {
"*": {
"from": "0x71",
"to": "0x72"
}
},
"storage": {}
},
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x2314d0d6f2fb840b64",
"to": "0x2314d4a47e7dcb7b64"
}
},
"code": "=",
"nonce": "=",
"storage": {}
"result": {
"output": "0x",
"stateDiff": {
"0x544731de2bc32c96198980f14923e50518ad6a1a": {
"balance": {
"*": {
"from": "0x1c6ac39cc5f495a1",
"to": "0x1c66f61143ad25a1"
}
},
"trace": [
{
"action": {
"from": "0x544731de2bc32c96198980f14923e50518ad6a1a",
"gas": "0xff80",
"init": "0x04d6878f0000000000000000000000000000000000000000000000000000000000004f8f",
"value": "0x0"
},
"error": "stack underflow",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "create"
"code": "=",
"nonce": {
"*": {
"from": "0x71",
"to": "0x72"
}
],
"vmTrace": {
"code": "0x04d6878f0000000000000000000000000000000000000000000000000000000000004f8f",
"ops": [
{
"cost": 65408,
"ex": {
"mem": null,
"push": [],
"store": null,
"used": 0
},
"idx": "0",
"op": "DIV",
"pc": 0,
"sub": null
}
]
}
},
"storage": {}
},
"0xea674fdde714fd979de3edf0f56aa9716b898ec8": {
"balance": {
"*": {
"from": "0x2314d0d6f2fb840b64",
"to": "0x2314d4a47e7dcb7b64"
}
},
"code": "=",
"nonce": "=",
"storage": {}
}
},
"trace": [
{
"action": {
"from": "0x544731de2bc32c96198980f14923e50518ad6a1a",
"gas": "0xff80",
"init": "0x04d6878f0000000000000000000000000000000000000000000000000000000000004f8f",
"value": "0x0"
},
"error": "stack underflow (0 <=> 2)",
"result": null,
"subtraces": 0,
"traceAddress": [],
"type": "create"
}
],
"vmTrace": {
"code": "0x04d6878f0000000000000000000000000000000000000000000000000000000000004f8f",
"ops": [
{
"cost": 5,
"ex": {
"mem": null,
"push": [],
"store": null,
"used": 65403
},
"idx": "0",
"op": "DIV",
"pc": 0,
"sub": null
}
]
}
}
}
}
]
Loading

0 comments on commit 5e467de

Please sign in to comment.