aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:51:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:51:37 +0800
commit32e3cab116eedb940c5e1be2a11daeb31260ce77 (patch)
tree1ddb441ac988d63ff9f999bebd9c4f2f202a3bb6 /packages/dev-utils/src
parent49ff4299c6628fcb0de831f4da1dd1a683305fa5 (diff)
downloaddexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar
dexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.gz
dexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.bz2
dexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.lz
dexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.xz
dexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.tar.zst
dexon-sol-tools-32e3cab116eedb940c5e1be2a11daeb31260ce77.zip
Make BlockchainLifecycle accept only web3Wrapper
Diffstat (limited to 'packages/dev-utils/src')
-rw-r--r--packages/dev-utils/src/blockchain_lifecycle.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/dev-utils/src/blockchain_lifecycle.ts b/packages/dev-utils/src/blockchain_lifecycle.ts
index 48746f8c1..3e35de861 100644
--- a/packages/dev-utils/src/blockchain_lifecycle.ts
+++ b/packages/dev-utils/src/blockchain_lifecycle.ts
@@ -4,10 +4,8 @@ import * as Web3 from 'web3';
export class BlockchainLifecycle {
private _web3Wrapper: Web3Wrapper;
private _snapshotIdsStack: number[];
- constructor(web3Orweb3Wrapper: Web3Wrapper | Web3) {
- this._web3Wrapper = (web3Orweb3Wrapper as Web3Wrapper).isZeroExWeb3Wrapper
- ? (web3Orweb3Wrapper as Web3Wrapper)
- : new Web3Wrapper((web3Orweb3Wrapper as Web3).currentProvider);
+ constructor(web3Wrapper: Web3Wrapper) {
+ this._web3Wrapper = web3Wrapper;
this._snapshotIdsStack = [];
}
// TODO: In order to run these tests on an actual node, we should check if we are running against