Skip to content

Commit

Permalink
fix: manual receive address copy for non-evm chains (#7504)
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre authored Aug 8, 2024
1 parent 5308be8 commit 0ac2e7b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Alert, AlertIcon, Button, CardFooter, useMediaQuery } from '@chakra-ui/react'
import type { AccountId } from '@shapeshiftoss/caip'
import { fromAccountId } from '@shapeshiftoss/caip'
import { isEvmChainId } from '@shapeshiftoss/chain-adapters'
import { SwapperName } from '@shapeshiftoss/swapper'
import type { ArbitrumBridgeTradeQuote } from '@shapeshiftoss/swapper/dist/swappers/ArbitrumBridgeSwapper/getTradeQuote/getTradeQuote'
import {
Expand Down Expand Up @@ -232,7 +233,11 @@ export const ConfirmSummary = ({
const shouldForceManualAddressEntry = useMemo(() => {
if (_isSmartContractSellAddress === undefined) return

return _isSmartContractSellAddress && sellAsset.chainId !== buyAsset.chainId
return (
_isSmartContractSellAddress &&
sellAsset.chainId !== buyAsset.chainId &&
isEvmChainId(buyAsset.chainId)
)
}, [_isSmartContractSellAddress, sellAsset, buyAsset])

return (
Expand Down

0 comments on commit 0ac2e7b

Please sign in to comment.