Skip to content

Commit 26727ce

Browse files
authored
Merge pull request #204 from benthecarman/patch-1
Send empty params for `get_info` and `get_balance`
2 parents 63f1ad4 + 055364c commit 26727ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NWCClient.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export class NWCClient {
370370
try {
371371
const result = await this.executeNip47Request<Nip47GetInfoResponse>(
372372
"get_info",
373-
undefined,
373+
{},
374374
(result) => !!result.methods,
375375
);
376376
return result;
@@ -384,7 +384,7 @@ export class NWCClient {
384384
try {
385385
const result = await this.executeNip47Request<Nip47GetBalanceResponse>(
386386
"get_balance",
387-
undefined,
387+
{},
388388
(result) => result.balance !== undefined,
389389
);
390390
return result;

0 commit comments

Comments
 (0)