This commit is contained in:
aozhiwei 2023-06-13 19:21:32 +08:00
parent 0d9ce62ef6
commit 3888ee88c6

View File

@ -35,6 +35,13 @@ class BlockChain {
this[`${data.name}Instance`] = await this.initInstance
(this.getUserAddress(), data.address, this.netDir + data.json);
}
const chainId = await this.web3.eth.getChainId();
if (chainId != this.netId) {
log.warning(util.format('net id error %s %s',
chainId,
this.netId
));
}
event.emitEvent(C.BC_INITIALIZED_EVENT);
}