Fix circular dependency with EtherscanProvider.

This commit is contained in:
Richard Moore 2022-12-03 16:58:56 -05:00
parent dda505dd7e
commit d3f5f6f726
2 changed files with 6 additions and 2 deletions

@ -1,6 +1,8 @@
import { Interface, Typed } from "../abi/index.js";
import { resolveAddress } from "../address/index.js";
import { copyRequest, Log, TransactionResponse } from "../providers/index.js";
// import from provider.ts instead of index.ts to prevent circular dep
// from EtherscanProvider
import { copyRequest, Log, TransactionResponse } from "../providers/provider.js";
import {
defineProperties, isCallException, isHexString, resolveProperties,
makeError, assert, assertArgument

@ -1,6 +1,8 @@
// import from provider.ts instead of index.ts to prevent circular dep
// from EtherscanProvider
import {
Block, Log, TransactionReceipt, TransactionResponse
} from "../providers/index.js";
} from "../providers/provider.js";
import { defineProperties, EventPayload } from "../utils/index.js";
import type { EventFragment, Interface, Result } from "../abi/index.js";