Skip to content

Commit

Permalink
fix: extract v2 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
osiastedian committed Nov 26, 2024
1 parent b1322fc commit c26f415
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions components/Bridge/UTXOStepWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { usePaliWalletV2 } from "@contexts/PaliWallet/usePaliWallet";
import {
usePaliWallet,
usePaliWalletV2,
} from "@contexts/PaliWallet/usePaliWallet";
import { Button } from "@mui/material";
import { isValidSYSAddress } from "@pollum-io/sysweb3-utils";

Expand All @@ -7,14 +10,9 @@ type UTXOStepWrapperProps = {
};

const UTXOStepWrapper: React.FC<UTXOStepWrapperProps> = ({ children }) => {
const {
version,
isBitcoinBased,
switchTo,
connectedAccount,
connectWallet,
changeAccount,
} = usePaliWalletV2();
const { version, connectedAccount, connectWallet } = usePaliWallet();

const { isBitcoinBased, switchTo, changeAccount } = usePaliWalletV2();

if (version === "v2" && !isBitcoinBased) {
return (
Expand Down

0 comments on commit c26f415

Please sign in to comment.