fix: 🐛 boltz swap (#196)

This commit is contained in:
Anthony Potdevin 2020-12-25 16:39:17 +01:00 committed by GitHub
parent b0d9e597a3
commit f1c9e4cf41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
);