1
This commit is contained in:
parent
0d9ce62ef6
commit
3888ee88c6
@ -35,6 +35,13 @@ class BlockChain {
|
|||||||
this[`${data.name}Instance`] = await this.initInstance
|
this[`${data.name}Instance`] = await this.initInstance
|
||||||
(this.getUserAddress(), data.address, this.netDir + data.json);
|
(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);
|
event.emitEvent(C.BC_INITIALIZED_EVENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user