caivega / ipfslib

Other
2 stars 1 forks source link

S3 - jt_signTransaction(9545):尝试销毁不可销毁代币时的问题 #70

Closed zyd82 closed 3 years ago

zyd82 commented 4 years ago

发送如下请求,尝试销毁代币KKKT,但KKKT是可增发但不可销毁的代币。

{
    "jsonrpc": "2.0",
    "method": "jt_signTransaction",
    "params": [
        {
            "type": "IssueCoin",
            "from": "jEwE94Yhi2iLqVuFAL7K1XbHoaFES9N3pm",
            "secret": "ssCR6vTQeD4rBDaD7cGZCM9w6bVfH",
            "name": "KKK Token",
            "symbol": "KKKT",
            "decimals": 8,
            "total_supply": "-100000000",=>尝试销毁代币
            "flags": 65536
        }
    ],
    "id": 1
}

9545上返回长哈希,用jt_sendRawTransaction发送该哈希,返回如下。建议返回相应提示信息。

{
    "id": 1,
    "jsonrpc": "2.0",
    "message": "failed to submit transaction blob 1200012280010000240000003368400000000000000a6c96838d7ea4c680000000000000000000000000004b4b4b540000000000000000000000000000000000000000000000007321033664603e11ff4075be6df5206487726e7365fea48a169f0ed776e69bd162ba9c74463044022036d86a9dd8666289a747c328062e996541559f120035de54c7dd766aed39c85d02204862a5e4231a3a3b04219fe7218d130aa2f7cc65556832be440a4927f9471e9381149b514fcd1b5c8aca4a08c1221fc349c38c4ae09591094b4b4b20546f6b656e041008: 
    temUNKNOWN The transactions requires logic not implemented yet.",
    "result": [
        ""
    ],
    "status": "error"
}
zyd82 commented 3 years ago

9545已验证,验证版本v0.5.2-dev

{
    "id": 1,
    "jsonrpc": "2.0",
    "message": {
        "reason": "1 errors",
        "result": [
            {
                "error": "failed to submit transaction 129E951649BE7C8761F0A0353887F57607F45DEC97C9227C08C9A3AF9E9EC198",
                "message": {
                    "engine_result": "tefNO_PERMISSION_ISSUE",
                    "engine_result_code": -175,
                    "engine_result_message": "No permission issue.",
                    "tx_blob": "1200012280010000240000000e68400000000000000a6c96438d7ea4c68000000000000000000000005a5944540000000000000000000000000000000000000000000000000000732102f28e0a8d5f9959838a84aa15120959cdd678d7bdc192e8140226a23ec753c9bc7446304402205015ecedc747fd6faa6f8bf9e141c006bae72721788f71abb06a3d803c2e5f9b0220134336a927fbd9ca9b82df502de5a48eb7ad1fa3dc5dfc875b8f768a33a656868114a90d7f2d012791c14281f5025fb079f34b622d858214a90d7f2d012791c14281f5025fb079f34b622d8591095a594420546f6b656e041008",
                    "tx_json": {
                        "TransactionType": "IssueCoin",
                        "Flags": 2147549184,
                        "Account": "jGQ14U9BeHn6kV9eofnVsshSCxAecBawPM",
                        "Sequence": 14,
                        "Fee": "10",
                        "SigningPubKey": "02F28E0A8D5F9959838A84AA15120959CDD678D7BDC192E8140226A23EC753C9BC",
                        "TxnSignature": "304402205015ECEDC747FD6FAA6F8BF9E141C006BAE72721788F71ABB06A3D803C2E5F9B0220134336A927FBD9CA9B82DF502DE5A48EB7AD1FA3DC5DFC875B8F768A33A65686",
                        "hash": "129E951649BE7C8761F0A0353887F57607F45DEC97C9227C08C9A3AF9E9EC198",
                        "Name": "ZYD Token",
                        "Decimals": 8,
                        "TotalSupply": {
                            "value": "-10000000",
                            "currency": "ZYDT",
                            "issuer": "jjjjjjjjjjjjjjjjjjjjjhoLvTp"
                        },
                        "Owner": "jGQ14U9BeHn6kV9eofnVsshSCxAecBawPM"
                    }
                },
                "status": -278
            }
        ]
    },
    "result": [
        ""
    ],
    "status": -278
}