调整检查操作权限和检查链id的顺序
This commit is contained in:
parent
ff54143ed5
commit
4de24123de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user