chore: update proxy contract for goerli

This commit is contained in:
nikdementev 2021-03-24 12:22:55 +03:00 committed by Nikita Dement'ev
parent 6cc62e7d94
commit 80f9d4017f
3 changed files with 11 additions and 2 deletions

View file

@ -22,6 +22,7 @@ const {
gasLimits,
instances,
oracleRpcUrl,
tornadoProxy,
tornadoServiceFee,
miningServiceFee,
} = require('./config')
@ -84,7 +85,14 @@ async function start() {
})
swap = new web3.eth.Contract(swapABI, await resolver.resolve(torn.rewardSwap.address))
minerContract = new web3.eth.Contract(miningABI, await resolver.resolve(torn.miningV2.address))
proxyContract = new web3.eth.Contract(tornadoProxyABI, await resolver.resolve(torn.tornadoProxy.address))
if (netId === 5) {
proxyContract = new web3.eth.Contract(tornadoProxyABI, tornadoProxy)
} else {
proxyContract = new web3.eth.Contract(
tornadoProxyABI,
await resolver.resolve(torn.tornadoProxy.address),
)
}
redisSubscribe.subscribe('treeUpdate', fetchTree)
await fetchTree()
const provingKeys = {