Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugo-dc/239d08104e439ba9af8228577cefb473 to your computer and use it in GitHub Desktop.
Save hugo-dc/239d08104e439ba9af8228577cefb473 to your computer and use it in GitHub Desktop.
test/testeth -t GeneralStateTests/stCallCodes -- --testpath /home/ewasm/hugo-dc/cpp-ethereum/test/jsontests --singlenet "Byzantium" --singletest callcodeInInitcodeToExistingContract --jsontrace ''
Running tests using path: "/home/ewasm/hugo-dc/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
[{"depth":"0","gas":"432081","gasCost":"3","memory":[],"op":"PUSHC","pc":"0","stack":[],"storage":{}},
{"depth":"0","gas":"432078","gasCost":"3","op":"PUSH1","pc":"33","stack":["0x6040600060406000600073945304eb96065b2a98b57a48a06ae28d285a71b562"]},
{"depth":"0","gas":"432075","gasCost":"3","op":"MSTORE","pc":"35","stack":["0x6040600060406000600073945304eb96065b2a98b57a48a06ae28d285a71b562","0x00"]},
{"depth":"0","gas":"432069","gasCost":"3","memory":["6040600060406000600073945304eb96065b2a98b57a48a06ae28d285a71b562"],"op":"PUSHC","pc":"36","stack":[]},
{"depth":"0","gas":"432066","gasCost":"3","op":"PUSH1","pc":"69","stack":["0x0186a0f260005500000000000000000000000000000000000000000000000000"]},
{"depth":"0","gas":"432063","gasCost":"3","op":"MSTORE","pc":"71","stack":["0x0186a0f260005500000000000000000000000000000000000000000000000000","0x20"]},
{"depth":"0","gas":"432057","gasCost":"3","memory":["6040600060406000600073945304eb96065b2a98b57a48a06ae28d285a71b562","0186a0f260005500000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"72","stack":[]},
{"depth":"0","gas":"432054","gasCost":"3","op":"PUSH1","pc":"74","stack":["0x40"]},
{"depth":"0","gas":"432051","gasCost":"3","op":"PUSH1","pc":"76","stack":["0x40","0x00"]},
{"depth":"0","gas":"432048","gasCost":"0","op":"CREATE","pc":"78","stack":["0x40","0x00","0x01"]},
{"depth":"1","gas":"393798","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}},
{"depth":"1","gas":"393795","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"1","gas":"393792","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"1","gas":"393789","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"1","gas":"393786","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"1","gas":"393783","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x00"]},
{"depth":"1","gas":"393780","gasCost":"3","op":"PUSH3","pc":"31","stack":["0x40","0x00","0x40","0x00","0x00","0x945304eb96065b2a98b57a48a06ae28d285a71b5"]},
{"depth":"1","gas":"393777","gasCost":"0","op":"CALLCODE","pc":"35","stack":["0x40","0x00","0x40","0x00","0x00","0x945304eb96065b2a98b57a48a06ae28d285a71b5","0x0186a0"]},
{"depth":"2","gas":"100000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}},
{"depth":"2","gas":"99997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x01"]},
{"depth":"2","gas":"99994","gasCost":"0","op":"SSTORE","pc":"4","stack":["0x01","0x02"]},
{"depth":"2","gas":"79994","gasCost":"0","op":"STOP","pc":"5","stack":[],"storage":{"0x02":"0x01"}},
{"depth":"1","gas":"373065","gasCost":"3","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"36","stack":["0x01"]},
{"depth":"1","gas":"373062","gasCost":"0","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"SSTORE","pc":"38","stack":["0x01","0x00"]},
{"depth":"1","gas":"353062","gasCost":"0","op":"STOP","pc":"39","stack":[],"storage":{"0x00":"0x01","0x02":"0x01"}},
{"depth":"0","gas":"359312","gasCost":"0","memory":["6040600060406000600073945304eb96065b2a98b57a48a06ae28d285a71b562","0186a0f260005500000000000000000000000000000000000000000000000000"],"op":"STOP","pc":"79","stack":["0x13136008b64ff592819b2fa6d43f2835c452020e"]}]
{"stateRoot": "0e9e704dc511c55b64b545eb97670caee07ad2c2b01d6c85b07748893ccf097f"}postState:
--- 0e9e704dc511c55b64b545eb97670caee07ad2c2b01d6c85b07748893ccf097f
1000000000000000000000000000000000000000: 1 #:9999 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $6cf800cc29ef5a45717674f4b4556edfadf1f61e02fea333168738eb5435f3f9
1000000000000000000000000000000000000001: 0 #:1000 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $57ccac6bf2bbc112d346dd16f2a08c4f1d032e174f9e5c10f6e10b0629da4c59
13136008b64ff592819b2fa6d43f2835c452020e: 1 #:1 [SIMPLE]
2adc25665018aa1fe0e6bc666dac8fc2697ff9ba: 0 #:93769 [SIMPLE]
945304eb96065b2a98b57a48a06ae28d285a71b5: 0 #:0 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $bedc266554be93140842bc6046b15b8493f63ab988181ee60ea394e2e78e0545
a94f5374fce5edbc8e2a8697c15331677e6ebf0b: 1 #:9999999999906231 [SIMPLE]
*** No errors detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment