mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 14:04:03 +01:00
fix: 🐛 boltz swap (#196)
This commit is contained in:
parent
b0d9e597a3
commit
f1c9e4cf41
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ export const boltzResolvers = {
|
|||
|
||||
const info = detectSwap(redeemScript, lockupTransaction);
|
||||
|
||||
if (!info?.vout || !info.type) {
|
||||
if ((info?.vout ?? -1) < 0 || (info?.type ?? -1) < 0) {
|
||||
logger.error('Cannot get vout or type from Boltz');
|
||||
logger.debug('Swap info: %o', {
|
||||
redeemScript,
|
||||
|
@ -134,7 +134,7 @@ export const boltzResolvers = {
|
|||
);
|
||||
|
||||
const finalTransaction = constructClaimTransaction(
|
||||
utxos,
|
||||
utxos as any,
|
||||
destinationScript,
|
||||
fee
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue