I was trying to deploy my smart contract to the local testnet and got this error.
Error 3070003: Serialization Error Processing WASM
I was using a command cleos set contract testing . hello.wast hello.abi -p testing
Nodeos output:
Produced block 000009736bfdf868... #2419 @ 2018-08-15T10:10:19.500 signed by eosio [trxs: 0, lib: 2418, confirmed: 0]
2018-08-15T10:10:19.780 thread-0 http_plugin.cpp:472 handle_exception ] FC Exception encountered while processing chain.push_transaction
2018-08-15T10:10:19.780 thread-0 http_plugin.cpp:473 handle_exception ] Exception Details: 3070003 wasm_serialization_error: Serialization Error Processing WASM
magic number: loaded 1685024040 but was expecting 1836278016
{}
thread-0 wasm_interface.cpp:40 validate
pending console output:
{"console":""}
thread-0 apply_context.cpp:61 exec_one
eosiocpp -o hello.wast hello.abi
andeosiocpp -g hello.abi hello.cpp
and just tried to deploy it by using cleos set contract.cleos set contract testing ./ hello.wast hello.abi -p testing
? I don't know if.
is a valid path.