Skip to content

Commit

Permalink
fix: ensure Camino Wallet uses checksum addresses throughout the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddaqqa committed Jun 27, 2024
1 parent 05b6917 commit 552b9a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/wallet/TopCards/AddressCard/AddressCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 552b9a5

Please sign in to comment.