diff --git a/src/core/utils/copy.ts b/src/core/utils/copy.ts index 2f2dd119c2..c22a9e7535 100644 --- a/src/core/utils/copy.ts +++ b/src/core/utils/copy.ts @@ -1,4 +1,5 @@ import { AddressZero } from '@ethersproject/constants'; +import { getAddress } from 'viem'; import { triggerToast } from '~/entries/popup/components/Toast/Toast'; @@ -26,6 +27,6 @@ export const copyAddress = (address: AddressOrEth) => { copy({ title: i18n.t('wallet_header.copy_toast'), description: truncateAddress(address), - value: address, + value: getAddress(address), }); }; diff --git a/src/entries/popup/pages/home/TokenDetails/About.tsx b/src/entries/popup/pages/home/TokenDetails/About.tsx index a6d81b672d..a8d4e5444f 100644 --- a/src/entries/popup/pages/home/TokenDetails/About.tsx +++ b/src/entries/popup/pages/home/TokenDetails/About.tsx @@ -1,5 +1,6 @@ import clsx from 'clsx'; import { ReactNode, useState } from 'react'; +import { getAddress } from 'viem'; import { i18n } from '~/core/languages'; import { ParsedUserAsset } from '~/core/types/assets'; @@ -348,7 +349,7 @@ export function About({ value={ {truncateAddress(token.address)}