【開放聯盟鏈】使用Dapp開發助手部署合約錯誤碼:"type":"returnCode","code":"408 - 123"

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 交易的目標賬戶已經存在。

解決辦法:同一合約名,只能存在一個,否則會提示以上錯誤,故新建合約並重新部署

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章