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() {
195
195
}
196
196
197
197
const newImplementationCode = await getCodeDigestWithoutAddress (
198
- chain . getRpcUrl ( ) ,
198
+ chain . getWeb3 ( ) ,
199
199
newImplementationAddress
200
200
) ;
201
201
// 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(
55
55
const startTime = Date . now ( ) ;
56
56
57
57
const fromBlock = requestResponse . blockNumber ;
58
- const web3 = new Web3 ( contract . chain . getRpcUrl ( ) ) ;
58
+ const web3 = contract . chain . getWeb3 ( ) ;
59
59
const entropyContract = contract . getContract ( ) ;
60
60
61
61
// eslint-disable-next-line no-constant-condition
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ async function main() {
22
22
if ( contract . getChain ( ) . isMainnet ( ) === argv . testnet ) continue ;
23
23
try {
24
24
const provider = await contract . getDefaultProvider ( ) ;
25
- const w3 = new Web3 ( contract . getChain ( ) . getRpcUrl ( ) ) ;
25
+ const w3 = contract . getChain ( ) . getWeb3 ( ) ;
26
26
const balance = await w3 . eth . getBalance ( provider ) ;
27
27
const keeperBalance = await w3 . eth . getBalance ( keeperAddress ) ;
28
28
let version = "unknown" ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ async function main() {
76
76
const contract = findEntropyContract ( chain ) ;
77
77
const provider = await contract . getDefaultProvider ( ) ;
78
78
const fee = await contract . getFee ( provider ) ;
79
- const web3 = new Web3 ( contract . chain . getRpcUrl ( ) ) ;
79
+ const web3 = contract . chain . getWeb3 ( ) ;
80
80
const testerContract = new web3 . eth . Contract ( ABI , argv . testerAddress ) ;
81
81
const { address } = web3 . eth . accounts . wallet . add ( privateKey ) ;
82
82
const transactionObject = testerContract . methods . batchRequests (
You can’t perform that action at this time.
0 commit comments