Skip to content

Instantly share code, notes, and snippets.

ewasm:
file: "hello.wasm"
output: "hello_deployer.wasm"
trimexports:
preset: "ewasm"
remapimports:
preset: "ewasm"
verifyimports:
preset: "ewasm"
verifyexports:
$ ./emsdk list
The following precompiled tool packages are available for download:
clang-e1.37.1-64bit
clang-e1.38.21-64bit INSTALLED
clang-e1.38.22-64bit
node-4.1.1-32bit
node-4.1.1-64bit INSTALLED
node-8.9.1-32bit
(*) node-8.9.1-64bit INSTALLED
[2019-01-21 10:06:42.903914] [0x00007f783e637ac0] [info] Loaded EVMC module: hera 0.2.0 (/home/hugo/workspace/hera/build/src/libhera.so)
aleth, a C++ Ethereum client
INFO 01-21 10:06:43 aleth net Id: ##3fdeab66…
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<dev::db::DatabaseError>'
what(): /home/hugo/workspace/aleth/libdevcore/LevelDB.cpp(57): Throw in function void dev::db::{anonymous}::checkStatus(const leveldb::Status&, const boost::filesystem::path&)
Dynamic exception type: boost::exception_detail::clone_impl<dev::db::DatabaseError>
[dev::db::tag_dbStatusCode*] = [ type: dev::db::DatabaseStatus, size: 4, dump: 02 00 00 00 ]
[dev::db::tag_dbStatusString*] = Corruption: corrupted compressed block contents
ethereum/tests/test_state.py DEBUG:root running test:'call_OOG_additionalGasCosts1' in '../fixtures/GeneralStateTests/stTest/call_OOG_additionalGasCosts1.json'
Verifying state test
Testing for Byzantium
Checking for values: g 30000 v 0 d 0x (indexes g 0 v 0 d 0)
DEBUG:eth.pb.tx TX NEW txdict={'nonce': 0, 'gasprice': 1, 'startgas': 30000, 'to': '0x1000000000000000000000000000000000000000', 'value': 0, 'data': '0x', 'v': 27, 'r': 50415895627259968624139904459091557242392994223712411832230948435819815598271, 's': 37830658489601452908686572182822234897977935569259462575426534625003775242715, 'sender': '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b', 'hash': '0xbadb9810523b1f38aa0e06f971483a3d988b60901b72f6053c218f7befb0cb78'}
DEBUG:eth.pb.msg MSG APPLY sender=a94f5374fce5edbc8e2a8697c15331677e6ebf0b to=1000000000000000000000000000000000000000 gas=9000 value=0 codelen=35 data= pre_storage={'balance': '1000000000000000000', 'nonce': '0', 'code': '0x60406000604060006000731000000000000000000000000000000000000001611770f
Running tests using path: "/home/ewasm/hugo-dc/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
[{"depth":"0","gas":"29979000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}},
{"depth":"0","gas":"29978997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"0","gas":"29978994","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"0","gas":"29978991","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"0","gas":"29978988","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"0","gas":"29978985","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x00"]},
Running tests using path: "/home/ewasm/hugo-dc/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
[{"depth":"0","gas":"29979000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}},
{"depth":"0","gas":"29978997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"0","gas":"29978994","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"0","gas":"29978991","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"0","gas":"29978988","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"0","gas":"29978985","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x00"]},
Running tests using path: "/home/ewasm/hugo-dc/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
[{"depth":"0","gas":"29979000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}},
{"depth":"0","gas":"29978997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"0","gas":"29978994","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"0","gas":"29978991","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"0","gas":"29978988","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"0","gas":"29978985","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x00"]},
Running tests using path: "/home/ewasm/hugo-dc/cpp-ethereum/test/jsontests"
Running 1 test case...
Test Case "stCallCodes":
100%
[{"depth":"0","gas":"29979000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}},
{"depth":"0","gas":"29978997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x40"]},
{"depth":"0","gas":"29978994","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x40","0x00"]},
{"depth":"0","gas":"29978991","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x40","0x00","0x40"]},
{"depth":"0","gas":"29978988","gasCost":"3","op":"PUSH1","pc":"8","stack":["0x40","0x00","0x40","0x00"]},
{"depth":"0","gas":"29978985","gasCost":"3","op":"PUSHC","pc":"10","stack":["0x40","0x00","0x40","0x00","0x00"]},
test/testeth -t GeneralStateTests/stCallCodes -- --testpath /home/ewasm/hugo-dc/cpp-ethereum/test/jsontests --singlenet "Byzantium" --singletest callcodeInInitcodeToExistingContractWithValueTransfer --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":["0x6040600060406000600573945304eb96065b2a98b57a48a06ae28d285a71b562"]},
{"depth":"0","gas":"432075","gasCost":"3","op":"MSTORE","pc":"35","stack":["0x6040600060406000600573945304eb96065b2a98b57a48a06ae28d285a71b562","0x00"]},
{"depth":"0","gas":"432069","gasCost":"3","memory":["6040600060406000600573945304eb96065b2a98b57a48a06ae28d285a71b562"],"op":"PUSHC","pc":"36","stack":[]},
{"depth":"0","gas":"432066","gasCost":"3","op":"PUSH1","pc":"69","stack":["0x0186a0f26000550000000000000000000000