Make an RPC constructor param implicit

This commit is contained in:
Leonid Logvinov
2018-01-30 14:03:54 +01:00
parent 6ebf8a57d1
commit 6205209fbb
23 changed files with 27 additions and 26 deletions

View File

@@ -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