diff --git a/contract_manager/scripts/check_proposal.ts b/contract_manager/scripts/check_proposal.ts index 0ca63af516..1e072c02ec 100644 --- a/contract_manager/scripts/check_proposal.ts +++ b/contract_manager/scripts/check_proposal.ts @@ -195,7 +195,7 @@ async function main() { } const newImplementationCode = await getCodeDigestWithoutAddress( - chain.getRpcUrl(), + chain.getWeb3(), newImplementationAddress ); // this should be the same keccak256 of the deployedCode property generated by truffle diff --git a/contract_manager/scripts/latency_entropy_with_callback.ts b/contract_manager/scripts/latency_entropy_with_callback.ts index d6c6e64de7..97d75cad9f 100644 --- a/contract_manager/scripts/latency_entropy_with_callback.ts +++ b/contract_manager/scripts/latency_entropy_with_callback.ts @@ -55,7 +55,7 @@ async function testLatency( const startTime = Date.now(); const fromBlock = requestResponse.blockNumber; - const web3 = new Web3(contract.chain.getRpcUrl()); + const web3 = contract.chain.getWeb3(); const entropyContract = contract.getContract(); // eslint-disable-next-line no-constant-condition diff --git a/contract_manager/scripts/list_entropy_contracts.ts b/contract_manager/scripts/list_entropy_contracts.ts index 083ce172a5..bbe1bebac5 100644 --- a/contract_manager/scripts/list_entropy_contracts.ts +++ b/contract_manager/scripts/list_entropy_contracts.ts @@ -22,7 +22,7 @@ async function main() { if (contract.getChain().isMainnet() === argv.testnet) continue; try { const provider = await contract.getDefaultProvider(); - const w3 = new Web3(contract.getChain().getRpcUrl()); + const w3 = contract.getChain().getWeb3(); const balance = await w3.eth.getBalance(provider); const keeperBalance = await w3.eth.getBalance(keeperAddress); let version = "unknown"; diff --git a/contract_manager/scripts/load_test_entropy.ts b/contract_manager/scripts/load_test_entropy.ts index 687e92ea57..83411b12b3 100644 --- a/contract_manager/scripts/load_test_entropy.ts +++ b/contract_manager/scripts/load_test_entropy.ts @@ -76,7 +76,7 @@ async function main() { const contract = findEntropyContract(chain); const provider = await contract.getDefaultProvider(); const fee = await contract.getFee(provider); - const web3 = new Web3(contract.chain.getRpcUrl()); + const web3 = contract.chain.getWeb3(); const testerContract = new web3.eth.Contract(ABI, argv.testerAddress); const { address } = web3.eth.accounts.wallet.add(privateKey); const transactionObject = testerContract.methods.batchRequests(