File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ;
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments