Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created May 29, 2018 18:38
Show Gist options
  • Save hugo-dc/fef5cfe238c4d1ed45befb12f8a3d2f1 to your computer and use it in GitHub Desktop.
Save hugo-dc/fef5cfe238c4d1ed45befb12f8a3d2f1 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 callcodeDynamicCode --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":["0x716860016000553360145560005260096017f36000526012600e6001f0600a55"]},
{"depth":"0","gas":"432075","gasCost":"3","op":"MSTORE","pc":"35","stack":["0x716860016000553360145560005260096017f36000526012600e6001f0600a55","0x00"]},
{"depth":"0","gas":"432069","gasCost":"3","memory":["716860016000553360145560005260096017f36000526012600e6001f0600a55"],"op":"PUSHC","pc":"36","stack":[]},
{"depth":"0","gas":"432066","gasCost":"3","op":"PUSH1","pc":"69","stack":["0x6040600060406000600073ffe4ebd2a68c02d9dcb0a17283d13346beb2d8b662"]},
{"depth":"0","gas":"432063","gasCost":"3","op":"MSTORE","pc":"71","stack":["0x6040600060406000600073ffe4ebd2a68c02d9dcb0a17283d13346beb2d8b662","0x20"]},
{"depth":"0","gas":"432057","gasCost":"3","memory":["716860016000553360145560005260096017f36000526012600e6001f0600a55","6040600060406000600073ffe4ebd2a68c02d9dcb0a17283d13346beb2d8b662"],"op":"PUSHC","pc":"72","stack":[]},
{"depth":"0","gas":"432054","gasCost":"3","op":"PUSH1","pc":"105","stack":["0x0186a0f2600b5500000000000000000000000000000000000000000000000000"]},
{"depth":"0","gas":"432051","gasCost":"3","op":"MSTORE","pc":"107","stack":["0x0186a0f2600b5500000000000000000000000000000000000000000000000000","0x40"]},
{"depth":"0","gas":"432045","gasCost":"3","memory":["716860016000553360145560005260096017f36000526012600e6001f0600a55","6040600060406000600073ffe4ebd2a68c02d9dcb0a17283d13346beb2d8b662","0186a0f2600b5500000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"108","stack":[]},
{"depth":"0","gas":"432042","gasCost":"3","op":"PUSH1","pc":"110","stack":["0x60"]},
{"depth":"0","gas":"432039","gasCost":"3","op":"PUSH1","pc":"112","stack":["0x60","0x00"]},
{"depth":"0","gas":"432036","gasCost":"0","op":"CREATE","pc":"114","stack":["0x60","0x00","0x01"]},
{"depth":"1","gas":"393786","gasCost":"3","memory":[],"op":"PUSHC","pc":"0","stack":[],"storage":{}},
{"depth":"1","gas":"393783","gasCost":"3","op":"PUSH1","pc":"19","stack":["0x6860016000553360145560005260096017f3"]},
{"depth":"1","gas":"393780","gasCost":"3","op":"MSTORE","pc":"21","stack":["0x6860016000553360145560005260096017f3","0x00"]},
{"depth":"1","gas":"393774","gasCost":"3","memory":["00000000000000000000000000006860016000553360145560005260096017f3"],"op":"PUSH1","pc":"22","stack":[]},
{"depth":"1","gas":"393771","gasCost":"3","op":"PUSH1","pc":"24","stack":["0x12"]},
{"depth":"1","gas":"393768","gasCost":"3","op":"PUSH1","pc":"26","stack":["0x12","0x0e"]},
{"depth":"1","gas":"393765","gasCost":"0","op":"CREATE","pc":"28","stack":["0x12","0x0e","0x01"]},
{"depth":"2","gas":"356113","gasCost":"3","memory":[],"op":"PUSHC","pc":"0","stack":[],"storage":{}},
{"depth":"2","gas":"356110","gasCost":"3","op":"PUSH1","pc":"10","stack":["0x600160005533601455"]},
{"depth":"2","gas":"356107","gasCost":"3","op":"MSTORE","pc":"12","stack":["0x600160005533601455","0x00"]},
{"depth":"2","gas":"356101","gasCost":"3","memory":["0000000000000000000000000000000000000000000000600160005533601455"],"op":"PUSH1","pc":"13","stack":[]},
{"depth":"2","gas":"356098","gasCost":"3","op":"PUSH1","pc":"15","stack":["0x09"]},
{"depth":"2","gas":"356095","gasCost":"0","op":"RETURN","pc":"17","stack":["0x09","0x17"]},
{"depth":"1","gas":"359947","gasCost":"3","memory":["00000000000000000000000000006860016000553360145560005260096017f3"],"op":"PUSH1","pc":"29","stack":["0x568a95f77b047bece6aa68843d2019332c46a585"]},
{"depth":"1","gas":"359944","gasCost":"0","memory":["00000000000000000000000000006860016000553360145560005260096017f3"],"op":"SSTORE","pc":"31","stack":["0x568a95f77b047bece6aa68843d2019332c46a585","0x0a"]},
{"depth":"1","gas":"339944","gasCost":"3","op":"PUSH1","pc":"32","stack":[],"storage":{"0x0a":"0x568a95f77b047bece6aa68843d2019332c46a585"}},
{"depth":"1","gas":"339941","gasCost":"3","op":"PUSH1","pc":"34","stack":["0x40"]},
{"depth":"1","gas":"339938","gasCost":"3","op":"PUSH1","pc":"36","stack":["0x40","0x00"]},
{"depth":"1","gas":"339935","gasCost":"3","op":"PUSH1","pc":"38","stack":["0x40","0x00","0x40"]},
{"depth":"1","gas":"339932","gasCost":"3","op":"PUSH1","pc":"40","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"1","gas":"339929","gasCost":"3","op":"PUSHC","pc":"42","stack":["0x40","0x00","0x40","0x00","0x00"]},
{"depth":"1","gas":"339926","gasCost":"3","op":"PUSH3","pc":"63","stack":["0x40","0x00","0x40","0x00","0x00","0xffe4ebd2a68c02d9dcb0a17283d13346beb2d8b6"]},
{"depth":"1","gas":"339923","gasCost":"0","op":"CALLCODE","pc":"67","stack":["0x40","0x00","0x40","0x00","0x00","0xffe4ebd2a68c02d9dcb0a17283d13346beb2d8b6","0x0186a0"]},
{"depth":"1","gas":"339220","gasCost":"3","memory":["00000000000000000000000000006860016000553360145560005260096017f3","0000000000000000000000000000000000000000000000000000000000000000"],"op":"PUSH1","pc":"68","stack":["0x01"]},
{"depth":"1","gas":"339217","gasCost":"0","op":"SSTORE","pc":"70","stack":["0x01","0x0b"]},
{"depth":"1","gas":"319217","gasCost":"0","op":"STOP","pc":"71","stack":[],"storage":{"0x0a":"0x568a95f77b047bece6aa68843d2019332c46a585","0x0b":"0x01"}},
{"depth":"0","gas":"325467","gasCost":"0","memory":["716860016000553360145560005260096017f36000526012600e6001f0600a55","6040600060406000600073ffe4ebd2a68c02d9dcb0a17283d13346beb2d8b662","0186a0f2600b5500000000000000000000000000000000000000000000000000"],"op":"STOP","pc":"115","stack":["0x13136008b64ff592819b2fa6d43f2835c452020e"]}]
{"stateRoot": "41e3f2ade5c27789716737d703559dd8a53f868baf7a876c408fcdb48d0df9b7"}postState:
--- 41e3f2ade5c27789716737d703559dd8a53f868baf7a876c408fcdb48d0df9b7
1000000000000000000000000000000000000000: 1 #:9999 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $1857c4620ca27a7193b480dd25342313629725fc55edeea2eab766efbe99ad87
1000000000000000000000000000000000000001: 0 #:1000 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $57ccac6bf2bbc112d346dd16f2a08c4f1d032e174f9e5c10f6e10b0629da4c59
13136008b64ff592819b2fa6d43f2835c452020e: 2 #:0 [SIMPLE]
2adc25665018aa1fe0e6bc666dac8fc2697ff9ba: 0 #:127614 [SIMPLE]
568a95f77b047bece6aa68843d2019332c46a585: 1 #:1 @:56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 $5c9b2869f8501c122de6fe6ab487d0d7aedbf3afabe76c2962381f1a61c48894
a94f5374fce5edbc8e2a8697c15331677e6ebf0b: 1 #:9999999999872386 [SIMPLE]
*** No errors detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment