caivega / ipfslib

Other
2 stars 1 forks source link

S4 - jt_sendRawTransaction,当参数为空数组时,返回没有报错 #105

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 4 years ago

jt_sendRawTransaction,当参数为空数组时,返回没有报错。感觉应该需要报错。

执行:

{
    "jsonrpc": "2.0",
    "method": "jt_sendRawTransaction",
    "params": [],
    "id": 1
}

返回:

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": []
}
caivega commented 3 years ago

返回提示为empty, 及bad parameter错误, 已修复,下一个build验证

foreso-GitHub commented 3 years ago

版本:20201114-v0.5.2-dev 修复。

返回结果:

{
    "id": 1,
    "jsonrpc": "2.0",
    "message": "empty",
    "result": "",
    "status": -269
}