diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-26 23:40:51 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-26 23:40:51 +0800 |
commit | 066c7ff0aa5c2cd657ae40b72bf1268119a86255 (patch) | |
tree | 7c77cb750ffb9e7620b09e42f7d05bd6359c458f /src | |
parent | a4ec739ce685989dde01c38cf45f4c21026f3c20 (diff) | |
download | dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.tar dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.tar.gz dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.tar.bz2 dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.tar.lz dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.tar.xz dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.tar.zst dexon-sol-tools-066c7ff0aa5c2cd657ae40b72bf1268119a86255.zip |
rename networkId to networkIdIfExists
Diffstat (limited to 'src')
-rw-r--r-- | src/ts/contract_wrappers/contract_wrapper.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ts/contract_wrappers/contract_wrapper.ts b/src/ts/contract_wrappers/contract_wrapper.ts index c3495fa21..ee1c6c90d 100644 --- a/src/ts/contract_wrappers/contract_wrapper.ts +++ b/src/ts/contract_wrappers/contract_wrapper.ts @@ -14,8 +14,10 @@ export class ContractWrapper { const providerObj = this.web3Wrapper.getCurrentProvider(); c.setProvider(providerObj); - const networkId = await this.web3Wrapper.getNetworkIdIfExistsAsync(); - const artifactNetworkConfigs = _.isUndefined(networkId) ? undefined : artifact.networks[networkId]; + const networkIdIfExists = await this.web3Wrapper.getNetworkIdIfExistsAsync(); + const artifactNetworkConfigs = _.isUndefined(networkIdIfExists) ? + undefined : + artifact.networks[networkIdIfExists]; let contractAddress; if (!_.isUndefined(address)) { contractAddress = address; |