diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-23 04:50:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 04:50:16 +0800 |
commit | e5785532ed1f4cada70db7815a44ffdd005077f5 (patch) | |
tree | da804f637b18b8589be98d81b34b26cbfc2b9032 /src/0x.ts | |
parent | bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd (diff) | |
parent | 49e43c98767666fcf457edfe2f3cbe098d12b6a5 (diff) | |
download | dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.gz dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.bz2 dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.lz dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.xz dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.tar.zst dexon-sol-tools-e5785532ed1f4cada70db7815a44ffdd005077f5.zip |
Merge branch 'master' into fill-order-amuont
Diffstat (limited to 'src/0x.ts')
-rw-r--r-- | src/0x.ts | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -import isUndefined = require('lodash/isUndefined'); +import * as _ from 'lodash'; import * as BigNumber from 'bignumber.js'; import {bigNumberConfigs} from './bignumber_config'; import * as ethUtil from 'ethereumjs-util'; @@ -239,10 +239,10 @@ export class ZeroEx { } private async _getExchangeAddressAsync() { const networkIdIfExists = await this._web3Wrapper.getNetworkIdIfExistsAsync(); - const exchangeNetworkConfigsIfExists = isUndefined(networkIdIfExists) ? + const exchangeNetworkConfigsIfExists = _.isUndefined(networkIdIfExists) ? undefined : (ExchangeArtifacts as any).networks[networkIdIfExists]; - if (isUndefined(exchangeNetworkConfigsIfExists)) { + if (_.isUndefined(exchangeNetworkConfigsIfExists)) { throw new Error(ZeroExError.CONTRACT_NOT_DEPLOYED_ON_NETWORK); } const exchangeAddress = exchangeNetworkConfigsIfExists.address; |