File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,10 @@ class ConnextClient extends SwapClient {
387
387
}
388
388
389
389
/**
390
- * Resolve a HashLock Transfer on the Connext network.
390
+ * Resolves a HashLock Transfer on the Connext network.
391
391
*/
392
- public settleInvoice = async ( _rHash : string , rPreimage : string , currency : string ) => {
392
+ public settleInvoice = async ( rHash : string , rPreimage : string , currency : string ) => {
393
+ this . logger . debug ( `settling ${ currency } invoice for ${ rHash } with preimage ${ rPreimage } ` ) ;
393
394
const assetId = this . tokenAddresses . get ( currency ) ;
394
395
await this . sendRequest ( '/hashlock-resolve' , 'POST' , {
395
396
assetId,
Original file line number Diff line number Diff line change @@ -905,7 +905,7 @@ class LndClient extends SwapClient {
905
905
}
906
906
907
907
public settleInvoice = async ( rHash : string , rPreimage : string ) => {
908
- this . logger . debug ( `settling invoice for ${ rHash } ` ) ;
908
+ this . logger . debug ( `settling invoice for ${ rHash } with preimage ${ rPreimage } ` ) ;
909
909
const settleInvoiceRequest = new lndinvoices . SettleInvoiceMsg ( ) ;
910
910
settleInvoiceRequest . setPreimage ( hexToUint8Array ( rPreimage ) ) ;
911
911
await this . settleInvoiceLnd ( settleInvoiceRequest ) ;
You can’t perform that action at this time.
0 commit comments