diff --git a/src/oracle/ethWatcher/ethWatcher.js b/src/oracle/ethWatcher/ethWatcher.js index aec54e3..ca9fea6 100644 --- a/src/oracle/ethWatcher/ethWatcher.js +++ b/src/oracle/ethWatcher/ethWatcher.js @@ -12,14 +12,6 @@ const abiBridge = require('./contracts_data/Bridge.json').abi const { HOME_RPC_URL, HOME_BRIDGE_ADDRESS, RABBITMQ_URL, HOME_START_BLOCK, VALIDATOR_PRIVATE_KEY } = process.env -logger.debug(`${HOME_RPC_URL} ${HOME_BRIDGE_ADDRESS}`) -axios.post(HOME_RPC_URL, { - jsonrpc: '2.0', - method: 'eth_getCode', - params: [ HOME_BRIDGE_ADDRESS, 'latest' ], - id: 1 -}).then(x => console.log(x.data), console.log) - const homeWeb3 = new Web3(HOME_RPC_URL) const bridge = new homeWeb3.eth.Contract(abiBridge, HOME_BRIDGE_ADDRESS) const validatorAddress = homeWeb3.eth.accounts.privateKeyToAccount(`0x${VALIDATOR_PRIVATE_KEY}`).address @@ -104,7 +96,6 @@ async function initialize () { } logger.debug('Checking if current validator') isCurrentValidator = (await bridge.methods.getValidators().call()).includes(validatorAddress) - logger.debug(`${isCurrentValidator}`) if (isCurrentValidator) { logger.info(`${validatorAddress} is a current validator`) } else {