Remove constructor arg

This commit is contained in:
Leonid Logvinov
2018-01-30 14:24:56 +01:00
parent 52ad16b920
commit d0e7046a89
3 changed files with 6 additions and 5 deletions

View File

@@ -1,11 +1,10 @@
import { constants } from './constants';
import { RPC } from './rpc';
export class BlockchainLifecycle {
private _rpc: RPC;
private _snapshotIdsStack: number[];
constructor() {
this._rpc = new RPC(constants.RPC_URL);
this._rpc = new RPC();
this._snapshotIdsStack = [];
}
// TODO: In order to run these tests on an actual node, we should check if we are running against

View File

@@ -1,11 +1,13 @@
import * as ethUtil from 'ethereumjs-util';
import * as request from 'request-promise-native';
import { constants } from './constants';
export class RPC {
private _url: string;
private _id: number;
constructor(url: string) {
this._url = url;
constructor() {
this._url = constants.RPC_URL;
this._id = 0;
}
public async takeSnapshotAsync(): Promise<number> {