Merge pull request #909 from shocknet/fix-swap-failure

fix swap crash
This commit is contained in:
Justin (shocknet) 2026-03-06 11:03:55 -05:00 committed by GitHub
commit b68129c316
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,7 @@ export class Swaps {
await this.storage.paymentStorage.FinalizeInvoiceSwap(swapOpId)
this.log("invoice swap completed", { swapOpId, txId })
} 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 })
}
}, () => payAddress(swap.address, swap.transaction_amount)