aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 21:03:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 23:01:37 +0800
commit6205209fbbb5dbebbf225e1cef76c3e86117d356 (patch)
treef9b352e759ff030686c532c3b6e37c320907813a /packages/dev-utils
parent6ebf8a57d18f273a9f1b04c7d2d5d8f7171eea96 (diff)
downloaddexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.tar
dexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.tar.gz
dexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.tar.bz2
dexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.tar.lz
dexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.tar.xz
dexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.tar.zst
dexon-sol-tools-6205209fbbb5dbebbf225e1cef76c3e86117d356.zip
Make an RPC constructor param implicit
Diffstat (limited to 'packages/dev-utils')
-rw-r--r--packages/dev-utils/src/blockchain_lifecycle.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/dev-utils/src/blockchain_lifecycle.ts b/packages/dev-utils/src/blockchain_lifecycle.ts
index 18f5d5c61..bb4908a0d 100644
--- a/packages/dev-utils/src/blockchain_lifecycle.ts
+++ b/packages/dev-utils/src/blockchain_lifecycle.ts
@@ -1,10 +1,11 @@
+import { constants } from './constants';
import { RPC } from './rpc';
export class BlockchainLifecycle {
private _rpc: RPC;
private _snapshotIdsStack: number[];
- constructor(url: string) {
- this._rpc = new RPC(url);
+ constructor() {
+ this._rpc = new RPC(constants.RPC_URL);
this._snapshotIdsStack = [];
}
// TODO: In order to run these tests on an actual node, we should check if we are running against