aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/token_wrapper.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-22 22:21:56 +0800
committerGitHub <noreply@github.com>2017-06-22 22:21:56 +0800
commit94cab6f694027d47971d661bca33beac42f4ade1 (patch)
treec411ec567878a8178aa64313bd9b76dfcb455fc7 /src/contract_wrappers/token_wrapper.ts
parent25a9ba90f508e0d147c060f60a9e3683e07d45e4 (diff)
downloaddexon-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/contract_wrappers/token_wrapper.ts')
-rw-r--r--src/contract_wrappers/token_wrapper.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 5db7248e8..29f9b2d1c 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -1,4 +1,4 @@
-import isUndefined = require('lodash/isUndefined');
+import * as _ from 'lodash';
import * as BigNumber from 'bignumber.js';
import {Web3Wrapper} from '../web3_wrapper';
import {assert} from '../utils/assert';
@@ -179,7 +179,7 @@ export class TokenWrapper extends ContractWrapper {
}
private async _getTokenContractAsync(tokenAddress: string): Promise<TokenContract> {
let tokenContract = this._tokenContractsByAddress[tokenAddress];
- if (!isUndefined(tokenContract)) {
+ if (!_.isUndefined(tokenContract)) {
return tokenContract;
}
const contractInstance = await this._instantiateContractIfExistsAsync((TokenArtifacts as any), tokenAddress);
@@ -189,10 +189,10 @@ export class TokenWrapper extends ContractWrapper {
}
private async _getProxyAddressAsync() {
const networkIdIfExists = await this._web3Wrapper.getNetworkIdIfExistsAsync();
- const proxyNetworkConfigsIfExists = isUndefined(networkIdIfExists) ?
+ const proxyNetworkConfigsIfExists = _.isUndefined(networkIdIfExists) ?
undefined :
(ProxyArtifacts as any).networks[networkIdIfExists];
- if (isUndefined(proxyNetworkConfigsIfExists)) {
+ if (_.isUndefined(proxyNetworkConfigsIfExists)) {
throw new Error(ZeroExError.CONTRACT_NOT_DEPLOYED_ON_NETWORK);
}
const proxyAddress = proxyNetworkConfigsIfExists.address;