Update nwcjs.js
This commit is contained in:
1 parent
471e40b7b3
commit
9c0c1bae5f
1 file changed
+1
-1
@@ -175,7 +175,7 @@ var nwcjs = {
|
||||
},
|
||||
didPaymentSucceed: async ( nwc_obj, invoice, seconds_of_delay_tolerable = 3 ) => {
|
||||
var invoice_info = await nwcjs.checkInvoice( nwc_obj, invoice, seconds_of_delay_tolerable );
|
||||
if ( invoice_info && !( "error" in invoice_info ) ) return true;
|
||||
if ( invoice_info && !( "error" in invoice_info ) ) return invoice_info[ "result" ][ "preimage" ];
|
||||
return false;
|
||||
},
|
||||
tryToPayInvoice: async ( nwc_obj, invoice, amnt ) => {
|
||||
|
||||
Reference in new issue
Block a user