From a00afb7181dd403cff9a7ea2ad8009f0a43503ef Mon Sep 17 00:00:00 2001 From: Mykel Pereira Date: Wed, 21 Feb 2018 11:11:33 -0800 Subject: [PATCH] Remove unnecessary code --- src/espresso.js | 2 +- src/server.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/espresso.js b/src/espresso.js index 24076b0..64d86cd 100644 --- a/src/espresso.js +++ b/src/espresso.js @@ -104,7 +104,7 @@ export default class Espresso { } async run() { - await this.server.start(this.port); + await this.server.start(); this.resolver = new Resolver(this.config); this.testSource = new TestSource(this.config); diff --git a/src/server.js b/src/server.js index 92edc0e..d1187f5 100644 --- a/src/server.js +++ b/src/server.js @@ -10,8 +10,7 @@ export default class Server { }); this.web3 = new Web3(); this.accounts = []; - this.startingPort = options.port || 8545; - portfinder.basePort = this.startingPort; + portfinder.basePort = options.port || 8545; } async start() {