调整检查操作权限和检查链id的顺序

This commit is contained in:
zhl 2023-04-20 10:52:16 +08:00
parent ff54143ed5
commit 4de24123de

View File

@ -151,9 +151,9 @@ createApp({
);
this.chainId = await this.web3.eth.getChainId();
console.log("current chain id: " + this.chainId);
await this.checkChain();
this.hasRole = await this.checkRole();
console.log("current has operation role: " + hasRole);
await this.checkChain();
this.subscribeToEvents();
this.walletConnect = true;
console.log(this.chainId, this.account);