Skip to content

Commit

Permalink
remove unecesary change
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Aug 25, 2023
1 parent 8e80a2c commit 6c24ea6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hooks/useHandleTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ async function solana(
SOL_TOKEN_BRIDGE_ADDRESS,
payerAddress,
transferAmountParsed.toBigInt(),
additionalPayload?.receivingContract || additionalPayload?.receivingContract || targetAddress,
additionalPayload?.receivingContract || targetAddress,
targetChain,
feeParsed.toBigInt(),
additionalPayload?.payload
Expand All @@ -665,7 +665,7 @@ async function solana(
fromAddress,
mintAddress,
transferAmountParsed.toBigInt(),
additionalPayload?.receivingContract || additionalPayload?.receivingContract || targetAddress,
additionalPayload?.receivingContract || targetAddress,
targetChain,
originAddress,
originChain,
Expand Down Expand Up @@ -722,8 +722,8 @@ async function terra(
const baseAmountParsed = parseUnits(amount, decimals);
const feeParsed = parseUnits(relayerFee || "0", decimals);
const transferAmountParsed = baseAmountParsed.add(feeParsed);
const tokenBridgeAddress = getTokenBridgeAddressForChain(chainId);
const additionalPayload = maybeAdditionalPayload();
const tokenBridgeAddress = getTokenBridgeAddressForChain(chainId);
const msgs = await transferFromTerra(
wallet.getAddress()!,
tokenBridgeAddress,
Expand Down Expand Up @@ -783,9 +783,9 @@ async function injective(
const baseAmountParsed = parseUnits(amount, decimals);
const feeParsed = parseUnits(relayerFee || "0", decimals);
const transferAmountParsed = baseAmountParsed.add(feeParsed);
const additionalPayload = maybeAdditionalPayload();
const tokenBridgeAddress =
getTokenBridgeAddressForChain(CHAIN_ID_INJECTIVE);
const additionalPayload = maybeAdditionalPayload();
const msgs = await transferFromInjective(
walletAddress,
tokenBridgeAddress,
Expand Down Expand Up @@ -1335,10 +1335,10 @@ export function useHandleTransfer() {
terraFeeDenom,
algoWallet,
aptosWallet,
maybeAdditionalPayload,
isTBTC,
seiWallet,
seiAddress,
maybeAdditionalPayload,
isTBTC,
]);
return useMemo(
() => ({
Expand Down

0 comments on commit 6c24ea6

Please sign in to comment.