caivega / ipfslib

Other
2 stars 1 forks source link

S3 - jt_sign,返回的复合错误,最外层错误不是复合错误类型tedCOMPOUND #162

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 3 years ago

jt_sign,返回的如果是复合错误,最外层错误不是复合错误类型tedCOMPOUND

版本: v0.5.3-dev-20201229-e6b44577a82873fc39752544df05f0d922af079f

TestCase:

{
    "jsonrpc": "2.0",
    "method": "jt_sign",
    "params": [
        {
            "from": "jMMzgdwbBwRp8GW5U1MZekbZzu8ShhYRWZ",
            "message": "0x1234567890abcde0"
        }
    ],
    "id": 1
}

{
    "error": {
        "count": 1,
        "description": "The transaction is ill-formed.",
        "information": "1 errors"
    },
    "id": 1,
    "jsonrpc": "2.0",
    "result": [
        {
            "error": {
                "description": "No matching entry found.",
                "information": "null from key",
                "message": {
                    "from": "jMMzgdwbBwRp8GW5U1MZekbZzu8ShhYRWZ",
                    "message": "0x1234567890abcde0"
                }
            },
            "status": 140,
            "type": "tecNO_ENTRY"
        }
    ],
    "status": -278,
    "type": "temINVALID"
}
{
    "jsonrpc": "2.0",
    "method": "jt_sign",
    "params": [
        {
            "from": "jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh1",
            "secret": "snoPBjXtMeMyMHUVTgbuqAfg1SUTb",
            "message": "0x1234567890abcde0"
        }
    ],
    "id": 1
}

{
    "error": {
        "count": 1,
        "description": "The transaction is ill-formed.",
        "information": "1 errors"
    },
    "id": 1,
    "jsonrpc": "2.0",
    "result": [
        {
            "error": {
                "description": "The source account does not exist.",
                "information": "Bad account address: jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh1: Bad Base58 checksum: jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh1 [31 214 232 52 206 78 173 120 171 250 154 197 196 224 127 126 56 111 111 220 97 175 78 87 35 58 81 65 17 156 30 63] expected [81 126 72 56]",
                "message": {
                    "from": "jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh1",
                    "message": "0x1234567890abcde0"
                }
            },
            "status": -96,
            "type": "terNO_ACCOUNT"
        }
    ],
    "status": -278,
    "type": "temINVALID"
}
caivega commented 3 years ago

已经修复,下一个build验证,另外你们两的用例编号要统一一下,建议你们也搞个issue同步这件事情

foreso-GitHub commented 3 years ago

版本v0.5.3-dev-20201230-a4d79e9198c743015b3b0ba55282915316d70d72中验证,已经修正。

foreso-GitHub commented 3 years ago

已经修复,下一个build验证,另外你们两的用例编号要统一一下,建议你们也搞个issue同步这件事情

正在做。