diff --git a/vue-app/src/App.vue b/vue-app/src/App.vue index e981f5053..019d15523 100644 --- a/vue-app/src/App.vue +++ b/vue-app/src/App.vue @@ -46,6 +46,7 @@ import { storeToRefs } from 'pinia' import { useRoute } from 'vue-router' import { useMeta } from 'vue-meta' import type { WalletUser } from '@/stores' +import type { BrowserProvider } from 'ethers' const route = useRoute() const appStore = useAppStore() @@ -192,7 +193,7 @@ watch(walletUser, async () => { const user: WalletUser = { chainId: walletUser.value.chainId, walletAddress: walletUser.value.walletAddress, - web3Provider: walletUser.value.web3Provider, + web3Provider: walletUser.value.web3Provider as BrowserProvider, } // make sure factory is loaded await appStore.loadClrFundInfo() diff --git a/vue-app/src/stores/user.ts b/vue-app/src/stores/user.ts index a49358db0..be6bb1c4f 100644 --- a/vue-app/src/stores/user.ts +++ b/vue-app/src/stores/user.ts @@ -3,7 +3,6 @@ import { defineStore } from 'pinia' import { useAppStore } from '@/stores' import type { WalletUser } from '@/stores' import { getContributionAmount, hasContributorVoted } from '@/api/contributions' -import type { Signer } from 'ethers' import { ensLookup, isValidSignature } from '@/utils/accounts' import { UserRegistryType, userRegistryType } from '@/api/core' import { getBrightId, type BrightId } from '@/api/bright-id'