diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-22 22:21:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-22 22:21:56 +0800 |
commit | 94cab6f694027d47971d661bca33beac42f4ade1 (patch) | |
tree | c411ec567878a8178aa64313bd9b76dfcb455fc7 /src/0x.ts | |
parent | 25a9ba90f508e0d147c060f60a9e3683e07d45e4 (diff) | |
download | dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.tar dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.tar.gz dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.tar.bz2 dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.tar.lz dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.tar.xz dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.tar.zst dexon-sol-tools-94cab6f694027d47971d661bca33beac42f4ade1.zip |
Revert "Use different lodash import syntax which allows to include only used functions"
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; |