contracts update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user