caivega / ipfslib

Other
2 stars 1 forks source link

S4 - jt_getTransactionByHash,如果参数是null,返回错误的报错信息 #110

Closed foreso-GitHub closed 4 years ago

foreso-GitHub commented 4 years ago

jt_getTransactionByHash,如果参数是null,返回报错信息是“not such method: jt_getTransactionByHash”。这不正确。

  1. 发送查询请求

    
    {
    "jsonrpc": "2.0",
    "method": "jt_getTransactionByHash",
    "params": [
        null
    ],
    "id": 1
    }
    ···
  2. 返回

    {
    "id": 1,
    "jsonrpc": "2.0",
    "message": "not such method: jt_getTransactionByHash",
    "result": "",
    "status": -278
    }
foreso-GitHub commented 4 years ago

已经在20200909第二版中修正。