Skip to content

Commit 2f61ffd

Browse files
committed
fix: package name in examples
1 parent db8e23f commit 2f61ffd

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ await fetchWithL402(
197197

198198
```js
199199
import { fetchWithL402 } from "@getalby/lightning-tools";
200-
import { webln } from "alby-js-sdk";
200+
import { webln } from "@getalby/sdk";
201201

202202
// use a NWC WebLN provide to do the payments
203203
const nwc = new webln.NostrWebLNProvider({
@@ -216,7 +216,7 @@ await fetchWithL402(
216216

217217
```js
218218
import { l402 } from "@getalby/lightning-tools";
219-
import { fiat } from "@getalby/lightning-tools"
219+
import { fiat } from "@getalby/lightning-tools";
220220

221221
// do not store the tokens
222222
await l402.fetchWithL402(
@@ -259,9 +259,13 @@ Like `getFiatValue` but returns a formatted string for a given locale using Java
259259
#### Examples
260260

261261
```js
262-
await fiat.getFiatValue({satoshi: 2100, currency: 'eur'});
263-
await fiat.getSatoshiValue({amount: 100, currency: 'eur'}); // for 1 EUR
264-
await fiat.getFormattedFiatValue({satoshi: 2100, currency: 'usd', locale: 'en'})
262+
await fiat.getFiatValue({ satoshi: 2100, currency: "eur" });
263+
await fiat.getSatoshiValue({ amount: 100, currency: "eur" }); // for 1 EUR
264+
await fiat.getFormattedFiatValue({
265+
satoshi: 2100,
266+
currency: "usd",
267+
locale: "en",
268+
});
265269
```
266270

267271
### 🤖 Lightning Address Proxy

examples/l402.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { fetchWithL402 } from "@getalby/lightning-tools";
2-
import { webln } from "alby-js-sdk";
2+
import { webln } from "@getalby/sdk";
33
import "websocket-polyfill";
44

55
const url = "https://lsat-weather-api.getalby.repl.co/kigali";

examples/zaps-nwc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LightningAddress } from "@getalby/lightning-tools";
2-
import { webln } from "alby-js-sdk";
2+
import { webln } from "@getalby/sdk";
33
import "websocket-polyfill";
44
import { finalizeEvent, getPublicKey } from "nostr-tools";
55
import { hexToBytes } from "@noble/hashes/utils";

0 commit comments

Comments
 (0)