We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a60eb commit ee6dcf6Copy full SHA for ee6dcf6
contract_manager/src/contracts/evm.ts
@@ -639,11 +639,13 @@ export class EvmPriceFeedContract extends PriceFeedContract {
639
let web3: Web3;
640
let amount = BigInt(0);
641
try {
642
- web3 = this.chain.getViemDefaultWeb3();
+ web3 = this.chain.getWeb3();
643
amount = BigInt(await web3.eth.getBalance(this.address));
644
} catch (error) {
645
- // Fallback to regular web3 if viem default web3 fails
646
- web3 = this.chain.getWeb3();
+ console.error(
+ "Error getting balance with given RPC, moving to viem default RPC",
647
+ );
648
+ web3 = this.chain.getViemDefaultWeb3();
649
650
}
651
return {
0 commit comments