use 'params' as per json_rpc

This commit is contained in:
sachaaaaa 2019-02-18 11:17:32 +11:00
parent 159dc711e1
commit ed1d06d9ce

View file

@ -121,7 +121,7 @@ class LokiMessageAPI {
const url = `${nodeUrl}${this.messageServerPort}/v1/storage_rpc`;
const body = {
method: 'store',
args: {
params: {
pubKey,
ttl: ttl.toString(),
nonce,
@ -218,7 +218,7 @@ class LokiMessageAPI {
const url = `${nodeUrl}${this.messageServerPort}/v1/storage_rpc`;
const body = {
method: 'retrieve',
args: {
params: {
pubKey: ourKey,
lastHash: nodeData.lastHash,
},