diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-06-07 08:21:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 08:21:09 +0800 |
commit | 67c4ad128c405692e471274148c9a2ef7cd8b6ca (patch) | |
tree | b410c792b110bbae4d1814aab8115b2b3120f65d /packages/dev-utils/src/blockchain_lifecycle.ts | |
parent | 5989844f1c3d00f57f1ab86a00aa97e17751c576 (diff) | |
parent | 870eca0d9f875f784c1847993246db3097f68405 (diff) | |
download | dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.gz dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.bz2 dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.lz dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.xz dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.zst dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.zip |
Merge pull request #662 from 0xProject/feature/improve-linting
Tried enabling no-unused-variable...
Diffstat (limited to 'packages/dev-utils/src/blockchain_lifecycle.ts')
-rw-r--r-- | packages/dev-utils/src/blockchain_lifecycle.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/dev-utils/src/blockchain_lifecycle.ts b/packages/dev-utils/src/blockchain_lifecycle.ts index 8e4ad81c7..4bb136097 100644 --- a/packages/dev-utils/src/blockchain_lifecycle.ts +++ b/packages/dev-utils/src/blockchain_lifecycle.ts @@ -1,6 +1,5 @@ import { uniqueVersionIds, Web3Wrapper } from '@0xproject/web3-wrapper'; -import * as _ from 'lodash'; -import * as Web3 from 'web3'; +import { includes } from 'lodash'; enum NodeType { Geth = 'GETH', @@ -49,9 +48,9 @@ export class BlockchainLifecycle { } private async _getNodeTypeAsync(): Promise<NodeType> { const version = await this._web3Wrapper.getNodeVersionAsync(); - if (_.includes(version, uniqueVersionIds.geth)) { + if (includes(version, uniqueVersionIds.geth)) { return NodeType.Geth; - } else if (_.includes(version, uniqueVersionIds.ganache)) { + } else if (includes(version, uniqueVersionIds.ganache)) { return NodeType.Ganache; } else { throw new Error(`Unknown client version: ${version}`); |