diff --git a/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx b/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx index 9e994e5222e2..18854f54afee 100644 --- a/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx +++ b/packages/mask/src/extension/options-page/DashboardComponents/CollectibleList/index.tsx @@ -5,7 +5,6 @@ import { ChainId, ERC721ContractDetailed, ERC721TokenDetailed, - formatEthereumAddress, isSameAddress, NonFungibleAssetProvider, SocketState, @@ -22,6 +21,7 @@ import { WalletMessages } from '@masknet/plugin-wallet' import { CollectionIcon } from './CollectionIcon' import { uniqBy } from 'lodash-unified' import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown' +import { ReverseAddress } from '@masknet/shared' export const CollectibleContext = createContext<{ collectiblesRetry: () => void @@ -301,7 +301,7 @@ export function CollectionList({ className={classes.button} variant="outlined" size="small"> - {formatEthereumAddress(addressName.label, 5)} + @@ -330,7 +330,7 @@ export function CollectionList({ diff --git a/packages/mask/src/plugins/Avatar/SNSAdaptor/NFTAvatar.tsx b/packages/mask/src/plugins/Avatar/SNSAdaptor/NFTAvatar.tsx index b0082df47dfd..8ed966851826 100644 --- a/packages/mask/src/plugins/Avatar/SNSAdaptor/NFTAvatar.tsx +++ b/packages/mask/src/plugins/Avatar/SNSAdaptor/NFTAvatar.tsx @@ -17,6 +17,7 @@ import { EthereumChainBoundary } from '../../../web3/UI/EthereumChainBoundary' import { AddNFT } from './AddNFT' import { NFTImage } from './NFTImage' import { useAccount, useWeb3State } from '@masknet/plugin-infra' +import { ReverseAddress } from '@masknet/shared' const useStyles = makeStyles()((theme) => ({ root: {}, @@ -142,7 +143,7 @@ export function NFTAvatar(props: NFTAvatarProps) { {account ? ( - {t('nft_wallet_label')}: {Utils?.formatAddress?.(account, 4) || account} + {t('nft_wallet_label')}: {!hideWallet ? (