Skip to content

Commit 2fe9fb8

Browse files
authored
fix(contract-manager) Small fixes (#2239)
1 parent b11de81 commit 2fe9fb8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

contract_manager/scripts/check_proposal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async function main() {
195195
}
196196

197197
const newImplementationCode = await getCodeDigestWithoutAddress(
198-
chain.getRpcUrl(),
198+
chain.getWeb3(),
199199
newImplementationAddress
200200
);
201201
// this should be the same keccak256 of the deployedCode property generated by truffle

contract_manager/scripts/latency_entropy_with_callback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function testLatency(
5555
const startTime = Date.now();
5656

5757
const fromBlock = requestResponse.blockNumber;
58-
const web3 = new Web3(contract.chain.getRpcUrl());
58+
const web3 = contract.chain.getWeb3();
5959
const entropyContract = contract.getContract();
6060

6161
// eslint-disable-next-line no-constant-condition

contract_manager/scripts/list_entropy_contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function main() {
2222
if (contract.getChain().isMainnet() === argv.testnet) continue;
2323
try {
2424
const provider = await contract.getDefaultProvider();
25-
const w3 = new Web3(contract.getChain().getRpcUrl());
25+
const w3 = contract.getChain().getWeb3();
2626
const balance = await w3.eth.getBalance(provider);
2727
const keeperBalance = await w3.eth.getBalance(keeperAddress);
2828
let version = "unknown";

contract_manager/scripts/load_test_entropy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function main() {
7676
const contract = findEntropyContract(chain);
7777
const provider = await contract.getDefaultProvider();
7878
const fee = await contract.getFee(provider);
79-
const web3 = new Web3(contract.chain.getRpcUrl());
79+
const web3 = contract.chain.getWeb3();
8080
const testerContract = new web3.eth.Contract(ABI, argv.testerAddress);
8181
const { address } = web3.eth.accounts.wallet.add(privateKey);
8282
const transactionObject = testerContract.methods.batchRequests(

0 commit comments

Comments
 (0)