update new contracts
This commit is contained in:
+20
-20
@@ -127,21 +127,22 @@ walletStore.publicClient = publicClient;
|
||||
|
||||
const networkId = getNetwork()?.chain?.id;
|
||||
|
||||
watchWalletClient(
|
||||
{
|
||||
chainId: networkId,
|
||||
},
|
||||
async (walletClient) => {
|
||||
walletStore.walletClient = walletClient;
|
||||
}
|
||||
);
|
||||
// watchWalletClient(
|
||||
// {
|
||||
// chainId: networkId,
|
||||
// },
|
||||
// async (walletClient) => {
|
||||
// console.log("watchWalletClient", walletClient);
|
||||
// walletStore.walletClient = walletClient;
|
||||
// }
|
||||
// );
|
||||
|
||||
watchPublicClient(
|
||||
{
|
||||
chainId: networkId,
|
||||
},
|
||||
(publicClient) => console.log("publicClient", publicClient)
|
||||
);
|
||||
// watchPublicClient(
|
||||
// {
|
||||
// chainId: networkId,
|
||||
// },
|
||||
// (publicClient) => console.log("publicClient", publicClient)
|
||||
// );
|
||||
|
||||
watchContractEvent(
|
||||
{
|
||||
@@ -168,12 +169,12 @@ watchAccount(async (account) => {
|
||||
const { chain, chains } = getNetwork();
|
||||
chainObject = chain;
|
||||
}
|
||||
// var walletClient = await getWalletClient({
|
||||
// account: account.address,
|
||||
// chainId: chainObject.id,
|
||||
// });
|
||||
var walletClient = await getWalletClient({
|
||||
account: account.address,
|
||||
chainId: chainObject.id,
|
||||
});
|
||||
|
||||
// walletStore.walletClient = walletClient;
|
||||
walletStore.walletClient = walletClient;
|
||||
|
||||
await memeBurnerStore.init();
|
||||
await tokenStore.initV2();
|
||||
@@ -187,7 +188,6 @@ watchAccount(async (account) => {
|
||||
});
|
||||
|
||||
watchNetwork((network) => {
|
||||
console.log("network123", network);
|
||||
if (network.chain) {
|
||||
walletStore.chain = network.chain;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user