Skip to content

Commit

Permalink
Merge pull request #204 from benthecarman/patch-1
Browse files Browse the repository at this point in the history
Send empty params for `get_info` and `get_balance`
  • Loading branch information
rolznz authored Feb 19, 2024
2 parents 63f1ad4 + 055364c commit 26727ce
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 26727ce

Please sign in to comment.