Skip to content

Commit 1a70397

Browse files
authored
Convert get-info to Typescript (#467)
* file rename * rewrite in typescript
1 parent e24e195 commit 1a70397

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "websocket-polyfill"; // required in node.js
33
import * as readline from "node:readline/promises";
44
import { stdin as input, stdout as output } from "node:process";
55

6-
import { nwc } from "../../../dist/index.module.js";
6+
import { NWCClient } from "@getalby/sdk/nwc";
77

88
const rl = readline.createInterface({ input, output });
99

@@ -12,7 +12,7 @@ const nwcUrl =
1212
(await rl.question("Nostr Wallet Connect URL (nostr+walletconnect://...): "));
1313
rl.close();
1414

15-
const client = new nwc.NWCClient({
15+
const client = new NWCClient({
1616
nostrWalletConnectUrl: nwcUrl,
1717
});
1818
const response = await client.getInfo();

0 commit comments

Comments
 (0)