From 2efea55d2b42217960c5c17d9d5755aa1122d20b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 8 Jun 2018 06:17:51 -0400 Subject: [PATCH] lint is king --- lib/tests/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tests/test.js b/lib/tests/test.js index bc9b5abe0..0e883686c 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -124,7 +124,7 @@ class Test { config(options, callback) { const self = this; - if (typeof(options) === 'function') { + if (typeof (options) === 'function') { callback = options; options = {}; } @@ -229,7 +229,7 @@ class Test { {from: self.web3.eth.defaultAccount, gas: 6000000})); self.contracts[contractName].address = contract.deployedAddress; if (self.contracts[contractName].options) { - self.contracts[contractName].options.from = self.contracts[contractName].options.from || web3.eth.defaultAccount; + self.contracts[contractName].options.from = self.contracts[contractName].options.from || self.web3.eth.defaultAccount; self.contracts[contractName].options.data = data; } eachCb(); @@ -276,7 +276,7 @@ class Test { {from: this.web3.eth.defaultAccount, gas: 6000000}); this.contracts[contractName].address = contract.address; this.contracts[contractName].options.data = contract.code; - web3.eth.getAccounts().then((accounts) => { + this.web3.eth.getAccounts().then((accounts) => { this.contracts[contractName].options.from = contract.from || accounts[0]; }); return this.contracts[contractName];