From 353714a27a0e9987c36e8e4d224025d207e8134f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 15 Aug 2023 13:29:27 +0800 Subject: [PATCH] 1 --- server/web3sign/blockchain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/web3sign/blockchain.js b/server/web3sign/blockchain.js index 47bc10e..9ff2816 100644 --- a/server/web3sign/blockchain.js +++ b/server/web3sign/blockchain.js @@ -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');