eosio.system智能合约部署遇到的问题

问题1

    transaction took too long

cleos set contract eosio eosio.system
Reading WAST/WASM from eosio.system/eosio.system.wasm...
Using already assembled WASM...
Publishing contract...
Error 3080006: transaction took too long
Error Details:
deadline exceeded

    nodeos程序启动时添加max-transaction-time即可解决这个问题
nodeos -e -p eosio --max-transaction-time=1000


问题2

    unable to find key

$cleos set contract eosio.token eosio.token
$cleos  push action eosio.token create '["eosio","1000000000.0000 EOS",0,0,0]' -p eosio.token
$cleos  push action eosio.token issue '["eosio","1000000000.0000 EOS","issue"]' -p eosio

$cleos set contract eosio eosio.system
Reading WAST/WASM from eosio.system/eosio.system.wasm...
Using already assembled WASM...
Publishing contract...
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: unable to find key

    这个问题eos github已经有人讨论过
   就是4.0以后默认系统币名字是SYS,所以需要将上面的EOS改成SYS
$cleos  push action eosio.token create '["eosio","1000000000.0000  SYS ",0,0,0]' -p eosio.token
$cleos  push action eosio.token issue '["eosio","1000000000.0000  SYS ","issue"]' -p eosio
$cleos set contract eosio eosio.system
或者修改CMakeLists.txt, 将CORE_SYMBLE_NAME配置为'EOS'
eosio.system智能合约部署遇到的问题_第1张图片
/********************************
* 本文来自CSDN博主"爱踢门"
* 转载请标明出处 : http://blog.csdn.net/itleaks
******************************************/

EOS技术交流群,EOS开发群,以太坊技术群:787804520

    eosio.system智能合约部署遇到的问题_第2张图片    

    公众号:

 

你可能感兴趣的:(区块链,EOS)