From 055364cc96a162e487a97c5f6e69579c5080ebfb Mon Sep 17 00:00:00 2001 From: benthecarman <15256660+benthecarman@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:54:06 -0600 Subject: [PATCH] Send empty params for `get_info` and `get_balance` --- src/NWCClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NWCClient.ts b/src/NWCClient.ts index 9d92afb..8fd4c7c 100644 --- a/src/NWCClient.ts +++ b/src/NWCClient.ts @@ -370,7 +370,7 @@ export class NWCClient { try { const result = await this.executeNip47Request( "get_info", - undefined, + {}, (result) => !!result.methods, ); return result; @@ -384,7 +384,7 @@ export class NWCClient { try { const result = await this.executeNip47Request( "get_balance", - undefined, + {}, (result) => result.balance !== undefined, ); return result;