diff --git a/src/test_utils/nwaku.ts b/src/test_utils/nwaku.ts index e3503cc871..22f8a105b2 100644 --- a/src/test_utils/nwaku.ts +++ b/src/test_utils/nwaku.ts @@ -356,6 +356,7 @@ export class Nwaku { method: string, params: Array ): Promise { + dbg("RPC Query: ", method, params); const res = await fetch(this.rpcUrl, { method: "POST", body: JSON.stringify({ @@ -366,8 +367,8 @@ export class Nwaku { }), headers: new Headers({ "Content-Type": "application/json" }), }); - dbg(`Response received for ${method} call: `, res, "params: ", params); const json = await res.json(); + dbg(`RPC Response: `, res, json); return json.result; }