diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 21:03:54 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 23:01:37 +0800 |
commit | 6205209fbbb5dbebbf225e1cef76c3e86117d356 (patch) | |
tree | f9b352e759ff030686c532c3b6e37c320907813a /packages/dev-utils/src/blockchain_lifecycle.ts | |
parent | 6ebf8a57d18f273a9f1b04c7d2d5d8f7171eea96 (diff) | |
download | dexon-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/src/blockchain_lifecycle.ts')
-rw-r--r-- | packages/dev-utils/src/blockchain_lifecycle.ts | 5 |
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 |