您正在查看: 2018年6月

error 3050003 comparison of assets with different symbols is not allowed

执行交易时提示

1125331ms thread-0   http_plugin.cpp:406           handle_exception     ] Exception Details: 3050003 eosio_assert_message_exception: eosio_assert_message assertion failure
assertion failure with message: comparison of assets with different symbols is not allowed
    {"s":"comparison of assets with different symbols is not allowed"}
    thread-0  wasm_interface.cpp:930 eosio_assert

    {"_pending_console_output.str()":""}

是因为交易中的代币符号与系统内的代币符号不一致。
可参考 (修改系统默认的代币SYS为EOS

No 'Access-Control-Allow-Origin' header is present on the requested resource

打开 config.ini,修改

access-control-allow-origin = *

cleos system delegatebw Error 305003

更新EOS版本(release 1.0.7)后编译,部署

//锁定Voter账户需要投票的代币
cleos system delegatebw voter1 voter1 '25000000.0000 EOS' '25000000.0000 EOS' --transfer

时出现Error 3050003: eosio_assert_message assertion failuer
查看nodeos log

assertion failure with message: cannot use transfer flag if delegating to self
    {"s":"cannot use transfer flag if delegating to self"}
    thread-0  wasm_interface.cpp:930 eosio_assert

原因是此版本更新后,不能自己给自己锁定代币了,改为其他账号互投即可

Error 3060003: Contract Table Query Exception

执行查看账户余额,出现以下错误

surou@surou-C-H110M-K-Pro:~/eos/contracts$ cleos get currency balance eosio.token eosio
Error 3060003: Contract Table Query Exception
Most likely, the given table doesnt' exist in the blockchain.

nodeos log

2517984ms thread-0   http_plugin.cpp:405           handle_exception     ] FC Exception encountered while processing chain.get_currency_balance
2517984ms thread-0   http_plugin.cpp:406           handle_exception     ] Exception Details: 3060003 contract_table_query_exception: Contract Table Query Exception
Table accounts is not specified in the ABI
    {"table":"accounts"}
    thread-0  chain_plugin.cpp:659 get_table_type

切换到 release 分支1.0.7分支后此问题消失。所以不要尝试非(Releases分支)编译。等后面在遇到在做跟进

修改系统默认的代币SYS为EOS

./eosio_build.sh -s EOS