From 552b9a5dbe04ced6942a6c05783b8ea9b012cab8 Mon Sep 17 00:00:00 2001 From: aeddaqqa Date: Thu, 27 Jun 2024 14:08:09 +0100 Subject: [PATCH] fix: ensure Camino Wallet uses checksum addresses throughout the UI --- .../wallet/TopCards/AddressCard/AddressCard.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/wallet/TopCards/AddressCard/AddressCard.vue b/src/components/wallet/TopCards/AddressCard/AddressCard.vue index 00148d7cb..54ed7124e 100644 --- a/src/components/wallet/TopCards/AddressCard/AddressCard.vue +++ b/src/components/wallet/TopCards/AddressCard/AddressCard.vue @@ -68,7 +68,7 @@ import MnemonicWallet, { LEDGER_ETH_ACCOUNT_PATH, } from '@/js/wallets/MnemonicWallet' import { WalletNameType, WalletType } from '@/js/wallets/types' - +import { toChecksumAddress } from 'web3-utils' @Component({ components: { CopyText, @@ -186,8 +186,7 @@ export default class AddressCard extends Vue { if (!wallet) { return '-' } - - return '0x' + wallet.getEvmAddress() + return toChecksumAddress('0x' + wallet.getEvmAddress()) } get activeAddress(): string { @@ -198,8 +197,9 @@ export default class AddressCard extends Vue { return this.addressPVM case 'C': return this.addressEVM + default: + return this.address } - return this.address } get activeIdx(): number {