Rename public interface provider to supportedProvider and our internal provider to Provider

This commit is contained in:
Fabio Berger
2019-02-19 12:47:01 -08:00
parent 5db20bbbe8
commit 2417084145
10 changed files with 70 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
import { AbiEncoder, abiUtils, BigNumber, providerUtils } from '@0x/utils';
import { AbiEncoder, abiUtils, BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
import {
AbiDefinition,
@@ -157,9 +157,8 @@ export class BaseContract {
provider: Provider,
txDefaults?: Partial<TxData>,
) {
const web3WrapperProvider = providerUtils.standardizeOrThrow(provider);
this.contractName = contractName;
this._web3Wrapper = new Web3Wrapper(web3WrapperProvider, txDefaults);
this._web3Wrapper = new Web3Wrapper(provider, txDefaults);
this.abi = abi;
this.address = address;
const methodAbis = this.abi.filter(