aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-22 22:22:20 +0800
committerGitHub <noreply@github.com>2017-06-22 22:22:20 +0800
commit1375126e4cec43714fdd7bf17a0a5d7301bf7928 (patch)
treec411ec567878a8178aa64313bd9b76dfcb455fc7 /src/web3_wrapper.ts
parent25a9ba90f508e0d147c060f60a9e3683e07d45e4 (diff)
parent94cab6f694027d47971d661bca33beac42f4ade1 (diff)
downloaddexon-0x-contracts-1375126e4cec43714fdd7bf17a0a5d7301bf7928.tar.gz
dexon-0x-contracts-1375126e4cec43714fdd7bf17a0a5d7301bf7928.tar.zst
dexon-0x-contracts-1375126e4cec43714fdd7bf17a0a5d7301bf7928.zip
Merge pull request #77 from 0xProject/revert-71-lodash-tree-shake
Revert "Use different lodash import syntax which allows to include only used functions"
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts
index d7cf6df58..6bdca499f 100644
--- a/src/web3_wrapper.ts
+++ b/src/web3_wrapper.ts
@@ -1,4 +1,4 @@
-import includes = require('lodash/includes');
+import * as _ from 'lodash';
import * as Web3 from 'web3';
import * as BigNumber from 'bignumber.js';
import promisify = require('es6-promisify');
@@ -17,7 +17,7 @@ export class Web3Wrapper {
}
public async isSenderAddressAvailableAsync(senderAddress: string): Promise<boolean> {
const addresses = await this.getAvailableAddressesAsync();
- return includes(addresses, senderAddress);
+ return _.includes(addresses, senderAddress);
}
public async getNodeVersionAsync(): Promise<string> {
const nodeVersion = await promisify(this.web3.version.getNode)();