错误 3070003:序列化处理 WASM 时出错



我在eosio.cdt version1.3.1的示例文件夹中编译hello.cpp,与版本1.2.X相比有很多更新。 然后完全按照 https://developers.eos.io/eosio-home/docs/your-first-contract 中的智能合约教程进行操作。编译成功没有错误,但是当我将合约上传到nodeos(版本1.3.2-脏(时,

编译 CPP:eosio-cpp -abigen hello.cpp -o hello.wasm

套装合约:cleos set contract hello ./hello -p hello@active

我得到 :Error 3070003: Serialization Error Processing WASM

节点引发错误:

2018-10-17T05:55:10.012 thread-0   http_plugin.cpp:580           handle_exception     ] FC Exception encountered while processing chain.push_transaction
2018-10-17T05:55:10.013 thread-0   http_plugin.cpp:581           handle_exception     ] Exception Details: 3070003 wasm_serialization_error: Serialization Error Processing WASM
mutable globals cannot be imported: globalImport.type.isMutable{}
thread-0  wasm_interface.cpp:42 validate pending console output:{"console":""}
thread-0  apply_context.cpp:61 exec_one

谁能帮忙?多谢。 我可以在nodeos和eosio-cpp 1.3.1版本上上传并运行hello demo,但是更新后出现问题。

回答myslef。 似乎由EOSIO-CPP编译的WASM&ABI文件不能被当前的NodeOS版本所接受。改用EOSIOCPP,问题就解决了。 我不知道为什么会发生这种情况,因为正式推荐 eosio-cpp

最新更新