This commit is contained in:
aozhiwei 2023-08-15 13:29:27 +08:00
parent 8ecf7394d8
commit 353714a27a

View File

@ -37,7 +37,8 @@ class BlockChain {
(this.getUserAddress(), data.address, this.netDir + data.json);
}
this.currencyHash = {};
this.currencyHash['CEG'] = this.getContractByName(contract.CEG_INSTANCE_NAME);
this.currencyHash['CEG'] = bcutils.toNormalAddress(
this.getContractByName(contract.CEG_INSTANCE_NAME)['address']);
if (this.netId == bcconst.ARBITRUM_NET_ID) {
this.currencyHash['USDT'] = bcutils.toNormalAddress('0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9');
this.currencyHash['USDC'] = bcutils.toNormalAddress('0xaf88d065e77c8cC2239327C5EDb3A432268e5831');