mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 19:21:44 +00:00
When using JSONRPC, do not double-encode JSON.
This commit is contained in:
@ -21,7 +21,7 @@ func TestJSONStatus(t *testing.T) {
|
||||
s := rpc.JsonRpc{
|
||||
JsonRpc: "2.0",
|
||||
Method: "status",
|
||||
Params: []string{},
|
||||
Params: []interface{}{},
|
||||
Id: 0,
|
||||
}
|
||||
b, err := json.Marshal(s)
|
||||
@ -56,7 +56,7 @@ func TestJSONGenPriv(t *testing.T) {
|
||||
s := rpc.JsonRpc{
|
||||
JsonRpc: "2.0",
|
||||
Method: "unsafe/gen_priv_account",
|
||||
Params: []string{},
|
||||
Params: []interface{}{},
|
||||
Id: 0,
|
||||
}
|
||||
b, err := json.Marshal(s)
|
||||
|
Reference in New Issue
Block a user