diff --git a/config.js b/config.js index 3b32a15..d158e8b 100644 --- a/config.js +++ b/config.js @@ -11,7 +11,7 @@ let config = { rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/', oracleRpcUrl: process.env.ORACLE_RPC_URL || 'https://mainnet.infura.io/', oracleAddress: '0xA2b8E7ee7c8a18ea561A5CF7C9C365592026E374', - minerAddress: '0x4c4C5cCC263A4531b90042561523c4a1Ad571751', + minerAddress: '0x0834DeaFD83130AE1867173919f693070DaE6eeD', minerMerkleTreeHeight: 10, privateKey: process.env.PRIVATE_KEY, instances: { diff --git a/src/utils.js b/src/utils.js index 950fa41..d5fb926 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,10 +1,11 @@ const { instances, netId } = require('../config') const { poseidon } = require('circomlib') -const { toBN } = require('web3-utils') +const { toBN, toChecksumAddress } = require('web3-utils') const sleep = (ms) => new Promise((res) => setTimeout(res, ms)) function getInstance(address) { + address = toChecksumAddress(address) const inst = instances[`netId${netId}`] for (const currency of Object.keys(inst)) { for (const amount of Object.keys(inst[currency].instanceAddress)) {