Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into abstract-hooks-from…
Browse files Browse the repository at this point in the history
…-txpanel
  • Loading branch information
fionnachan committed Sep 20, 2024
2 parents 7ecd609 + efcc7bd commit 12be011
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,6 @@ export function TransferPanel() {
if (!withdrawalConfirmation) return
}

const destinationAddressError = await getDestinationAddressError({
destinationAddress,
isSenderSmartContractWallet: isSmartContractWallet,
isTeleportMode
})

if (destinationAddressError) {
console.error(destinationAddressError)
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { useArbQueryParams } from '../../hooks/useArbQueryParams'
import { useDestinationAddressError } from './hooks/useDestinationAddressError'
import { formatAmount } from '../../util/NumberUtils'
import { useSelectedTokenIsWithdrawOnly } from './hooks/useSelectedTokenIsWithdrawOnly'
import { useDestinationAddressError } from './hooks/useDestinationAddressError'

// Add chains IDs that are currently down or disabled
// It will block transfers and display an info box in the transfer panel
Expand Down Expand Up @@ -571,6 +572,8 @@ export function useTransferReadiness(): UseTransferReadinessResult {
childChain.id,
parentChain.id,
networks.sourceChain.name,
isTeleportMode
isTeleportMode,
isSelectedTokenWithdrawOnly,
isSelectedTokenWithdrawOnlyLoading
])
}

0 comments on commit 12be011

Please sign in to comment.