diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-11 19:14:46 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-11 19:14:46 +0800 |
commit | 6b152edb985d836c91c6d816c03cc15e77be2c6e (patch) | |
tree | c45781294002a7b01eb78d1a3b25dba64a8c68de /src/contract_wrappers/contract_wrapper.ts | |
parent | fad23af55e997eea764f1d4e8e698c0ace3c351b (diff) | |
download | dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.gz dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.bz2 dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.lz dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.xz dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.zst dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.zip |
Fix last tests
Diffstat (limited to 'src/contract_wrappers/contract_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/contract_wrapper.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts index 99cfd97f0..b9426849a 100644 --- a/src/contract_wrappers/contract_wrapper.ts +++ b/src/contract_wrappers/contract_wrapper.ts @@ -5,16 +5,16 @@ import {ZeroExError} from '../types'; import {utils} from '../utils/utils'; export class ContractWrapper { - protected web3Wrapper: Web3Wrapper; + protected _web3Wrapper: Web3Wrapper; constructor(web3Wrapper: Web3Wrapper) { - this.web3Wrapper = web3Wrapper; + this._web3Wrapper = web3Wrapper; } protected async _instantiateContractIfExistsAsync(artifact: Artifact, address?: string): Promise<ContractInstance> { const c = await contract(artifact); - const providerObj = this.web3Wrapper.getCurrentProvider(); + const providerObj = this._web3Wrapper.getCurrentProvider(); c.setProvider(providerObj); - const networkIdIfExists = await this.web3Wrapper.getNetworkIdIfExistsAsync(); + const networkIdIfExists = await this._web3Wrapper.getNetworkIdIfExistsAsync(); const artifactNetworkConfigs = _.isUndefined(networkIdIfExists) ? undefined : artifact.networks[networkIdIfExists]; @@ -26,7 +26,7 @@ export class ContractWrapper { } if (!_.isUndefined(contractAddress)) { - const doesContractExist = await this.web3Wrapper.doesContractExistAtAddressAsync(contractAddress); + const doesContractExist = await this._web3Wrapper.doesContractExistAtAddressAsync(contractAddress); if (!doesContractExist) { throw new Error(ZeroExError.CONTRACT_DOES_NOT_EXIST); } |