merge development master

This commit is contained in:
EmberSpirit
2023-08-14 18:57:02 +02:00
13 changed files with 15276 additions and 64 deletions
+28 -2
View File
@@ -82,8 +82,34 @@ export const useWalletStoreV2 = defineStore("walletV2", {
],
publicClient,
webSocketPublicClient,
});
this.publicClient = publicClient;
});
this.publicClient = publicClient;
console.log("hier123");
const account = getAccount();
console.log("account123abc", account);
if (account.address) {
this.address = account.address;
this.connected = true;
}
// await this.isConnected();
// const goerliKey = import.meta.env.VITE_GOERLI_KEY;
// if (this.connected) {
// const web3 = new Web3(window.ethereum);
// this.web3 = markRaw(web3);
// console.log("hierabc");
// window.ethereum.on("accountsChanged", async (data) => {
// console.log("accountsChanged", data);
// console.log("data", data);
// if (data.length > 0) {
// this.address = data[0];
// this.connected = true;
// } else {
// this.address = null;
// this.connected = false;
// }
// });
console.log("this.config", this.config);
const walletClient = await getWalletClient();