mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +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);
|
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.error('Cannot get vout or type from Boltz');
|
||||||
logger.debug('Swap info: %o', {
|
logger.debug('Swap info: %o', {
|
||||||
redeemScript,
|
redeemScript,
|
||||||
|
@ -134,7 +134,7 @@ export const boltzResolvers = {
|
||||||
);
|
);
|
||||||
|
|
||||||
const finalTransaction = constructClaimTransaction(
|
const finalTransaction = constructClaimTransaction(
|
||||||
utxos,
|
utxos as any,
|
||||||
destinationScript,
|
destinationScript,
|
||||||
fee
|
fee
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue