From f1c9e4cf4143ff502d6e524fa8bc83e47447a24e Mon Sep 17 00:00:00 2001 From: Anthony Potdevin <31413433+apotdevin@users.noreply.github.com> Date: Fri, 25 Dec 2020 16:39:17 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20boltz=20swap=20(#196)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/schema/boltz/resolvers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/schema/boltz/resolvers.ts b/server/schema/boltz/resolvers.ts index c1992a58..a42a4374 100644 --- a/server/schema/boltz/resolvers.ts +++ b/server/schema/boltz/resolvers.ts @@ -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 );