您正在查看: EOS 分类下的文章

Error 3050003 assertion failure with message: overdrawn balance

执行

eos.transfer({
    from: 'dapp.exec',
    to: 'eosio',
    quantity: '99999973.8056 EOS',
    memo: 'hello world'
        }).then(console.log)
    .catch(e => {
        console.error(e);
    })

返回

eos.js:18306 Error: {"code":500,"message":"Internal Service Error","error":{"code":3050003,"name":"eosio_assert_message_exception","what":"eosio_assert_message assertion failure","details":[{"message":"assertion failure with message: overdrawn balance","file":"wasm_interface.cpp","line_number":930,"method":"eosio_assert"},{"message":"","file":"apply_context.cpp","line_number":62,"method":"exec_one"}]}}

原因:账户余额小于要转的金额

Error 3050003 assertion failure with message: no balance object found

执行创建账户

const name = 'bcskillsuroy'
    const pubkey = 'EOS68mvUMCz73a5Xj2wnJxdTW1aPjmiKCeSAjVdXjTd3D3g9A38EE'
     eos.transaction(tr => {
        tr.newaccount({
          creator: 'dapp.exec',
          name,
          owner: pubkey,
          active: pubkey
        })

        tr.buyrambytes({
          payer: 'dapp.exec',
          receiver: name,
          bytes: 8192
        })

        tr.delegatebw({
          from: 'dapp.exec',
          receiver: name,
          stake_net_quantity: '10.0000 EOS',
          stake_cpu_quantity: '10.0000 EOS',
          transfer: 0
        })
    }).then(console.log)
    .catch(e => {
        console.error(e);
    })

返回错误

eos.js:3010 {"code":500,"message":"Internal Service Error","error":{"code":3050003,"name":"eosio_assert_message_exception","what":"eosio_assert_message assertion failure","details":[{"message":"assertion failure with message: no balance object found","file":"wasm_interface.cpp","line_number":930,"method":"eosio_assert"},{"message":"","file":"apply_context.cpp","line_number":62,"method":"exec_one"}]}}

原因:由于buyrambytes,创建主账户没有足够可用的余额(EOS此时返回的错误提示也有待改进)

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

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