caivega / ipfslib

Other
2 stars 1 forks source link

S2 - jt_sign总是出错 #123

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 3 years ago

jt_sign总是出错。

请求:

{
    "jsonrpc": "2.0",
    "method": "jt_sign",
    "params": [
       "jNA76Qd59NroA4F4Lkzj3a9xcQJ2e5JRzT",
       "saaT8MmD356s83EtbugoGL4mwu21F",
       "0xdeadbeaf"
    ],
    "id": 1
}

结果:

{
    "id": 1,
    "jsonrpc": "2.0",
    "message": "interface conversion: interface {} is string, not map[string]interface {}",
    "result": "",
    "status": -189
}
caivega commented 3 years ago

jt_sign请求格式按文档来。。。。,见JSON RPC文档,https://github.com/caivega/ipfslib/wiki/chain%E7%9A%84JSON_RPC%E6%89%8B%E5%86%8C#jt_sign 文档中例子没更新,刚才已经更新 错误返回信息,已经处理,下次build验证下

foreso-GitHub commented 3 years ago

版本:20201114-v0.5.2-dev已经修复。并在文档中增加一个较完整的例子。