Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created May 29, 2018 18:39
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/31c48d72e122797959d895983690efae to your computer and use it in GitHub Desktop.
Save hugo-dc/31c48d72e122797959d895983690efae 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 callcodeDynamicCode2SelfCall --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":["0x604060006040600060007313136008b64ff592819b2fa6d43f2835c452020e62"]},
{"depth":"0","gas":"432075","gasCost":"3","op":"MSTORE","pc":"35","stack":["0x604060006040600060007313136008b64ff592819b2fa6d43f2835c452020e62","0x00"]},
{"depth":"0","gas":"432069","gasCost":"3","memory":["604060006040600060007313136008b64ff592819b2fa6d43f2835c452020e62"],"op":"PUSHC","pc":"36","stack":[]},
{"depth":"0","gas":"432066","gasCost":"3","op":"PUSH1","pc":"69","stack":["0x0186a0f2600b5533600c55000000000000000000000000000000000000000000"]},
{"depth":"0","gas":"432063","gasCost":"3","op":"MSTORE","pc":"71","stack":["0x0186a0f2600b5533600c55000000000000000000000000000000000000000000","0x20"]},
{"depth":"0","gas":"432057","gasCost":"3","memory":["604060006040600060007313136008b64ff592819b2fa6d43f2835c452020e62","0186a0f2600b5533600c55000000000000000000000000000000000000000000"],"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","0x13136008b64ff592819b2fa6d43f2835c452020e"]},
{"depth":"1","gas":"393777","gasCost":"0","op":"CALLCODE","pc":"35","stack":["0x40","0x00","0x40","0x00","0x00","0x13136008b64ff592819b2fa6d43f2835c452020e","0x0186a0"]},
{"depth":"1","gas":"393071","gasCost":"3","memory":["0000000000000000000000000000000000000000000000000000000000000000","0000000000000000000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"36","stack":["0x01"]},
{"depth":"1","gas":"393068","gasCost":"0","op":"SSTORE","pc":"38","stack":["0x01","0x0b"]},
{"depth":"1","gas":"373068","gasCost":"2","op":"CALLER","pc":"39","stack":[],"storage":{"0x0b":"0x01"}},
{"depth":"1","gas":"373066","gasCost":"3","op":"PUSH1","pc":"40","stack":["0x1000000000000000000000000000000000000000"]},
{"depth":"1","gas":"373063","gasCost":"0","op":"SSTORE","pc":"42","stack":["0x1000000000000000000000000000000000000000","0x0c"]},
{"depth":"1","gas":"353063","gasCost":"0","op":"STOP","pc":"43","stack":[],"storage":{"0x0b":"0x01","0x0c":"0x1000000000000000000000000000000000000000"}},
{"depth":"0","gas":"359313","gasCost":"0","memory":["604060006040600060007313136008b64ff592819b2fa6d43f2835c452020e62","0186a0f2600b5533600c55000000000000000000000000000000000000000000"],"op":"STOP","pc":"79","stack":["0x13136008b64ff592819b2fa6d43f2835c452020e"]}]
{"stateRoot": "df2b5e393c8e61ef04550e38a3c53b87016b34d93a995b6b1709c0a19d1addad"}postState:
--- df2b5e393c8e61ef04550e38a3c53b87016b34d93a995b6b1709c0a19d1addad
1000000000000000000000000000000000000000: 1 #:9999 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $1bcbf38b1116f21744854c0f97937ff6a9e06feb10554934134728af2df08402
13136008b64ff592819b2fa6d43f2835c452020e: 1 #:1 [SIMPLE]
2adc25665018aa1fe0e6bc666dac8fc2697ff9ba: 0 #:93768 [SIMPLE]
a94f5374fce5edbc8e2a8697c15331677e6ebf0b: 1 #:9999999999906232 [SIMPLE]
*** No errors detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment