caivega / ipfslib

Other
2 stars 1 forks source link

S3 - jt_signTransaction:value参数为字符串或空 #49

Closed zyd82 closed 3 years ago

zyd82 commented 4 years ago

发送如下jt_signTransaction请求,value参数为字符串或空 { "jsonrpc": "2.0", "method": "jt_signTransaction", "params": [ { "from": "j3C3LAfQ6aTgnG3gvPPEaUE3g6cPnXZQdd", "secret": "ss6iFshVyH7zZL2pGiQ4otrrd5uCg", "to": "jDjvM2rrjgAsYEeFJsSvuXxkbYxZQpdEwu", "value": "adfda" } ], "id": 1 }

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": "Invalid Number: adfdaJ Reason: strconv.ParseUint: parsing \"\": invalid syntax",
                "message": {
                    "from": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
                    "to": "jGQ14U9BeHn6kV9eofnVsshSCxAecBawPM",
                    "value": "adfdaJ"
                },
                "status": -278
            }
        ]
    },
    "result": [
        ""
    ],
    "status": -278
}