eos icon indicating copy to clipboard operation
eos copied to clipboard

cleos set contract fail

Open liyongpengCtrip opened this issue 8 years ago • 3 comments

The latest version,when i running this command "cleos set contract eosio build/contracts/eosio.bios" ,I get a error like this:

[root@COMDEV0628 eos]# cleos set contract eosio build/contracts/eosio.bios Reading WAST/WASM from build/contracts/eosio.bios/eosio.bios.wasm... Using already assembled WASM... Publishing contract... 2808368ms thread-0 main.cpp:2555 main ] Failed with error: Assert Exception (10) !"unresolvable": env.set_proposed_producers

Before running the command, I have deleted the build directory and run ./eosio_build.sh

liyongpengCtrip avatar May 29 '18 07:05 liyongpengCtrip

cleos set contract eosio ${eos_path}/contracts/eosio.bios contracts/eosio.bios/eosio.bios.wast ${eos_path}/contracts/eosio.bios/eosio.bios.abi

maxb14 avatar May 29 '18 09:05 maxb14

@liyongpengCtrip it seems like version mismatch between the system contract and nodeos. set_proposed_producers function was renamed from set_active_producers, your system contract uses set_proposed_producers while nodeos doesn't provide it try recompiling everything from the same version of source code

moskvanaft avatar May 29 '18 17:05 moskvanaft

I am closing the ticket. @liyongpengCtrip feel free to reopen if recompiling doesn't help

moskvanaft avatar May 29 '18 17:05 moskvanaft