Skip to content

Commit

Permalink
fix: address parsing for new quote (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Nov 28, 2024
1 parent 37420ad commit 125cfd5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/status/TransactionLockupFailed.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import BigNumber from "bignumber.js";
import type { Network as LiquidNetwork } from "liquidjs-lib/src/networks";
import log from "loglevel";
import { ImArrowDown } from "solid-icons/im";
import {
Expand All @@ -23,7 +24,12 @@ import {
getChainSwapNewQuote,
getChainSwapTransactions,
} from "../utils/boltzClient";
import { getAddress, getOutputAmount, getTransaction } from "../utils/compat";
import {
getAddress,
getNetwork,
getOutputAmount,
getTransaction,
} from "../utils/compat";
import { formatAmount } from "../utils/denomination";
import { formatError } from "../utils/errors";
import { parseBlindingKey } from "../utils/helper";
Expand Down Expand Up @@ -82,6 +88,7 @@ const TransactionLockupFailed = (props: {
);
const lockupScript = getAddress(chainSwap.assetSend).toOutputScript(
chainSwap.lockupDetails.lockupAddress,
getNetwork(chainSwap.assetSend) as LiquidNetwork,
);

const output = lockTransaction.outs.find((o) =>
Expand Down

0 comments on commit 125cfd5

Please sign in to comment.