caivega / ipfslib

Other
2 stars 1 forks source link

S3 - jt_signTransaction:from和to参数相关的问题 #46

Closed zyd82 closed 3 years ago

zyd82 commented 4 years ago

发送jt_signTransaction请求,from参数是无效的钱包地址(长度不对、纯数字等),或者to参数是无效的钱包地址(长度不对、纯数字等)

7545和9545上都返回如下,建议返回相应的提示信息。 { "id": 1, "jsonrpc": "2.0", "result": [ "" ], "status": "success" }

zyd82 commented 4 years ago

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

zyd82 commented 3 years ago

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

{
    "id": 1,
    "jsonrpc": "2.0",
    "message": {
        "reason": "1 errors",
        "result": [
            {
                "error": "Bad account address: jPdx7mG595P6CowtGYbxRkik9HdWUWtB2: Bad Base58 checksum: jPdx7mG595P6CowtGYbxRkik9HdWUWtB2 [159 36 211 165 219 172 217 90 86 232 85 157 204 163 105 99 240 102 22 120 1 196 56 123 216 197 204 20 60 107 43 250] expected [150 231 4 233]",
                "message": {
                    "from": "jGQ14U9BeHn6kV9eofnVsshSCxAecBawPM",
                    "memos": [
                        "大家好"
                    ],
                    "to": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2",
                    "value": "10000"
                },
                "status": -278
            }
        ]
    },
    "result": [
        ""
    ],
    "status": -278
}