欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【开放联盟链】使用Dapp开发助手部署合约错误码:"type":"returnCode","code":"408 - 123"

程序员文章站 2022-05-13 20:10:52
...

1.DApp开发助手(支付宝小程序开发者工具插件)部署/更新合约时,合约仅能部署一次,修改后再次部署失败。

{"type":"returnCode","code":"408 - 123","returnCode":408,"receiptCode":123,"data":{"msg_type":"63","block_number":0,"receipt":{"result":123,"output":"","gas_used":0,"log_entry":""},"transaction_index":0,"return_code":408,"txhash":"0x48539a0c36440ae69997dbb90e423ce8c1c3dc5bdf0164b31bc1a1ee28c7f632"}}

使用JSON解析下

{
    "type":"returnCode",
    "code":"408 - 123",
    "returnCode":408,
    "receiptCode":123,
    "data":{
        "msg_type":"63",
        "block_number":0,
        "receipt":{
            "result":123,
            "output":"",
            "gas_used":0,
            "log_entry":""
        },
        "transaction_index":0,
        "return_code":408,
        "txhash":"0x48539a0c36440ae69997dbb90e423ce8c1c3dc5bdf0164b31bc1a1ee28c7f632"
    }
}

根据文档中错误码的解释:

SERVICE_TX_VERIFY_FAILED 408 transaction verify failed 交易验证失败。
TX_DEST_ACCOUNT_ALREADY_EXIST 123 the dest account of tx already exist 交易的目标账户已经存在。

解决办法:同一合约名,只能存在一个,否则会提示以上错误,故新建合约并重新部署

 

 

相关标签: 区块链 区块链