diff options
| author | Adam Soltys <[email protected]> | 2025-01-17 08:49:50 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-17 08:49:50 -0800 |
| commit | e8f6d70cf8dfa377f5da43fc8172ef02cfa8c416 (patch) | |
| tree | af1a7c789a0b73a3b062c87329fb0089cc94f8a7 /src/lib | |
| parent | 8181cb0c2764a4d73e00da3afeb6eb5faf85fd07 (diff) | |
| download | coinos-ui-e8f6d70cf8dfa377f5da43fc8172ef02cfa8c416.tar.gz coinos-ui-e8f6d70cf8dfa377f5da43fc8172ef02cfa8c416.zip | |
allow mint self-payments
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/parse.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts index 309e53d7..ba181e6c 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -53,6 +53,7 @@ export default async (s, host) => { if (t.toLowerCase().startsWith("ln")) { try { await get(`/invoice/${t}`); + if (inv.user.username === "mint") throw new Error("mint payment"); } catch (e) { if (t.toLowerCase().startsWith("lno")) { const { offer_amount_msat: a } = await get(`/decode/${t}`); |
