BCSkill (Block chain skill )
区块链中文技术社区

只讨论区块链底层技术
遵守一切相关法律政策!

Error 3050003 assertion failure with message: invalid sell

购买RAM的代币数 保留小数后四位 例如1.0000

Error 3050000 Cannot create account named xxxxxx, as that name is already taken

账户 xxxxxx,已经在链上创建了,链上账户名唯一

error 3050003 assertion failure with message: symbol precision mismatch

转账等代币金额 保留小数后 4位 如 '1.0000 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"}]}}

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