Remove constructor arg
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -3187,7 +3187,7 @@ ethereumjs-util@4.5.0, ethereumjs-util@^4.0.1, ethereumjs-util@^4.3.0, ethereumj
|
||||
rlp "^2.0.0"
|
||||
secp256k1 "^3.0.1"
|
||||
|
||||
ethereumjs-util@^5.0.0, ethereumjs-util@^5.0.1, ethereumjs-util@^5.1.1:
|
||||
ethereumjs-util@^5.0.0, ethereumjs-util@^5.0.1, ethereumjs-util@^5.1.1, ethereumjs-util@^5.1.2:
|
||||
version "5.1.3"
|
||||
resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-5.1.3.tgz#0c1f6efb1da9c5b6720a65697859fc0be6672df0"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user