contracts update

This commit is contained in:
Michel Fromme
2023-07-27 15:34:07 +02:00
parent 5157308745
commit 650df134d2
12 changed files with 14369 additions and 16715 deletions
+3 -4
View File
@@ -9,8 +9,6 @@ import {
getAccount,
getContract,
connect,
getWalletClient,
getPublicClient,
disconnect,
InjectedConnector,
watchAccount,
@@ -36,7 +34,8 @@ export const useWalletStoreV2 = defineStore("walletV2", {
client: null,
publicClient: null,
walletClient: null,
config: null
config: null,
chain: null,
}),
getters: {},
actions: {
@@ -50,6 +49,7 @@ export const useWalletStoreV2 = defineStore("walletV2", {
[goerli],
[alchemyProvider({ apiKey: goerliKey }), publicProvider()]
);
this.config = createConfig({
autoConnect: true,
@@ -79,7 +79,6 @@ export const useWalletStoreV2 = defineStore("walletV2", {
webSocketPublicClient,
});
this.publicClient = publicClient;
this.walletClient = await getWalletClient();
// await this.isConnected();
// const goerliKey = import.meta.env.VITE_GOERLI_KEY;
// if (this.connected) {