Skip to content

Commit d331bc5

Browse files
committed
Add TODO for lightning address check
1 parent a0fbd28 commit d331bc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wallets/client/protocols/spark.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export async function testSendPayment ({ mnemonic }, { signal }) {
3131
// check and register lightning address here so we can test it in the next step
3232
// https://sdk-doc-spark.breez.technology/guide/receive_lnurl_pay.html
3333
const username = getUsername(sparkAddress)
34+
35+
// TODO(spark): don't check lightning address again if we already registered it
3436
const available = await sdk.checkLightningAddressAvailable({ username })
3537
if (!available) {
3638
// TODO(spark): better error message for user? but this should never happen with randomly generated mnemonics, right?

0 commit comments

Comments
 (0)