fix swap crash

This commit is contained in:
boufni95 2026-03-05 18:20:10 +00:00
parent 70544bd551
commit 0f3626869e
No known key found for this signature in database

View file

@ -169,7 +169,7 @@ export class Swaps {
await this.storage.paymentStorage.FinalizeInvoiceSwap(swapOpId) await this.storage.paymentStorage.FinalizeInvoiceSwap(swapOpId)
this.log("invoice swap completed", { swapOpId, txId }) this.log("invoice swap completed", { swapOpId, txId })
} else { } else {
await this.storage.paymentStorage.FailInvoiceSwap(swapOpId, result.error, txId) await this.storage.paymentStorage.FailInvoiceSwap(swapOpId, result.error)
this.log("invoice swap failed", { swapOpId, error: result.error }) this.log("invoice swap failed", { swapOpId, error: result.error })
} }
}, () => payAddress(swap.address, swap.transaction_amount) }, () => payAddress(swap.address, swap.transaction_amount)