Skip to content

Commit

Permalink
[multicall-fall-back-provider] added (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cast0001 authored Jan 29, 2024
1 parent dc749d6 commit c67b357
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/contracts/vaultMulticall.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { VoidSigner, JsonRpcProvider } from 'ethers'
import { VoidSigner } from 'ethers'

import { configs } from '../utils'
import { createProvider } from '../utils'
import { VaultAbi, KeeperAbi } from './types'
import getHarvestParams from '../methods/vault/requests/getHarvestParams'

Expand Down Expand Up @@ -35,8 +35,7 @@ const vaultMulticall = async <T extends unknown>(values: VaultMulticallInput): P
const withSigner = !callStatic && !transactionData

if (withSigner) {
const config = configs[options.network]
const library = options.provider || new JsonRpcProvider(config.network.url)
const library = options.provider || createProvider(options)

const signer = options.provider
? await options.provider.getSigner(userAddress)
Expand Down

0 comments on commit c67b357

Please sign in to comment.