Skip to content

Commit

Permalink
Send empty params for get_info and get_balance
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored Feb 17, 2024
1 parent 63f1ad4 commit 055364c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NWCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class NWCClient {
try {
const result = await this.executeNip47Request<Nip47GetInfoResponse>(
"get_info",
undefined,
{},
(result) => !!result.methods,
);
return result;
Expand All @@ -384,7 +384,7 @@ export class NWCClient {
try {
const result = await this.executeNip47Request<Nip47GetBalanceResponse>(
"get_balance",
undefined,
{},
(result) => result.balance !== undefined,
);
return result;
Expand Down

0 comments on commit 055364c

Please sign in to comment.