Skip to content

Commit

Permalink
fix: l2 to l1 bridge token select (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
marthendalnunes authored Apr 5, 2024
1 parent 313fe16 commit 7565f66
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,11 @@ export function Erc721CollectionSelector({
onSelect={() => {
const l1Token = token.address as Address
const l2Token = token.extensions?.bridgeInfo?.[chainId]
handleSelect(
(chainType === "L1" ? l1Token : l2Token) as Address
)
?.tokenAddress as Address
handleSelect(chainType === "L1" ? l1Token : l2Token)
setSelectedUnlistedToken(undefined)
setDestinationNetwork?.(undefined)
setRemoteToken?.(
(chainType === "L1" ? l2Token : l1Token) as Address
)
setRemoteToken?.(chainType === "L1" ? l2Token : l1Token)
setTokenMetadata?.({
logoURI: selectedTokenData?.logoURI,
name: selectedTokenData?.name ?? undefined,
Expand Down

0 comments on commit 7565f66

Please sign in to comment.