Skip to content

Commit 3d5a237

Browse files
committed
stop test if lnurl lookup fails
1 parent 6bf0318 commit 3d5a237

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/ArduinoESP32TestNWC/ArduinoESP32TestNWC.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void testNWC() {
103103
transport->getInvoiceFromLNAddr(PAYOUT_ADDRESS, PAYOUT_AMOUNT_MSAT, "Arduino NWC test", [&](String invoice) {
104104
if (NostrString_equals(invoice, "")) {
105105
Serial.println("[!] Error: Could not get invoice from LN address");
106+
return;
106107
}
107108
Serial.println("[!] Paying " + String(PAYOUT_AMOUNT_MSAT) + " msats to " + PAYOUT_ADDRESS + " invoice: " + invoice);
108109
nwc->payInvoice(

0 commit comments

Comments
 (0)