diff --git a/explorer/src/components/account/TokenAccountSection.tsx b/explorer/src/components/account/TokenAccountSection.tsx index 943dfef2eb..35f6db3041 100644 --- a/explorer/src/components/account/TokenAccountSection.tsx +++ b/explorer/src/components/account/TokenAccountSection.tsx @@ -16,6 +16,7 @@ import { addressLabel } from "utils/tx"; import { reportError } from "utils/sentry"; import { useTokenRegistry } from "providers/mints/token-registry"; import { BigNumber } from "bignumber.js"; +import { Copyable } from "components/common/Copyable"; export function TokenAccountSection({ account, @@ -60,6 +61,18 @@ function MintAccountCard({ const refresh = () => fetchInfo(account.pubkey); const tokenInfo = tokenRegistry.get(mintAddress); + + let bridgeContractAddress = tokenInfo?.extensions?.address; + if (tokenInfo?.extensions?.bridgeContract && !bridgeContractAddress) { + const extractEth = tokenInfo.extensions.bridgeContract.match( + /0x[a-fA-F0-9]{40,64}/ + ); + + if (extractEth) { + bridgeContractAddress = extractEth[0]; + } + } + return (