diff --git a/src/pinia-stores/ethers.ts b/src/pinia-stores/ethers.ts index 67b9c24..f93195b 100644 --- a/src/pinia-stores/ethers.ts +++ b/src/pinia-stores/ethers.ts @@ -32,15 +32,11 @@ export const useEthersStore = defineStore('ethers', { export function useEthers() { const ethersStore = useEthersStore() - const { address } = useVueDapp() - - const checksummedAddress = address.value ? ethers.utils.getAddress(address.value) : null return { ...useVueDapp(), provider: computed(() => ethersStore.provider), signer: computed(() => ethersStore.signer), - address: computed(() => checksummedAddress), balance: computed(() => ethersStore.balance), setWallet: ethersStore.setWallet, resetWallet: ethersStore.resetWallet, diff --git a/src/views/Home.vue b/src/views/Home.vue index f017479..96a3d4e 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -182,8 +182,6 @@ import Referral from '../components/Referral.vue' import useDomainHelpers from '../hooks/useDomainHelpers' import useChainHelpers from '../hooks/useChainHelpers' import MinterAbi from '../abi/Minter.json' -import erc20Abi from '../abi/Erc20.json' -import { storeToRefs } from 'pinia' import { useVueDappModal } from '@vue-dapp/modal' export default { diff --git a/src/views/Profile.vue b/src/views/Profile.vue index 51426dc..16c3625 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -201,7 +201,7 @@ export default { const intfc = new ethers.utils.Interface(tldAbi) const contract = new ethers.Contract(this.getTldAddress, intfc, this.signer) const checkDomainHolder = await contract.getDomainHolder(existingDomainParts[0]) - if (String(checkDomainHolder) === String(this.address)) { + if (String(checkDomainHolder).toLowerCase() === String(this.address).toLowerCase()) { this.addDomainManually(existingDomainLower) this.toast('Domain successfully added.', { type: TYPE.SUCCESS }) } else {