Skip to content

Commit

Permalink
Revert "Added option to use MulticallProvider instead of StaticJsonRp…
Browse files Browse the repository at this point in the history
…cProvider when using custom provider (#148)" (#153)

This reverts commit 763aef4.
  • Loading branch information
0xslipk authored Oct 12, 2023
1 parent 763aef4 commit b4a0167
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 1,173 deletions.
302 changes: 133 additions & 169 deletions README.md

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions __tests__/ethers.custom-rpcs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { providers as multicall } from '@0xsequence/multicall'
import {
AlchemyProvider,
AnkrProvider,
Expand All @@ -22,7 +21,6 @@ import {
EthereumMoralisProvider,
getBinanceDefaultProvider,
getFallbackProvider,
getMulticallProvider,
getNetworkDefaultProvider,
MoralisProvider,
} from '../src/ethers.custom-rpcs'
Expand Down Expand Up @@ -219,19 +217,6 @@ describe('Ethers Custom RPC', () => {
})
})

describe('getMulticallProvider', () => {
it('should return a instance of MulticallProvider', async () => {
const fallbackProvider = await getFallbackProvider([
new CloudflareProvider(MAINNET_NETWORK),
new InfuraProvider(MAINNET_NETWORK),
])

const provider = await getMulticallProvider(fallbackProvider)

expect(provider).toBeInstanceOf(multicall.MulticallProvider)
})
})

describe('getBinanceDefaultProvider', () => {
it('should return a instance of FallbackProvider with BscscanProvider and BinancePocketProvider', async () => {
const provider = await getBinanceDefaultProvider(BINANCE_TESTNET_NETWORK)
Expand Down
Loading

0 comments on commit b4a0167

Please sign in to comment.