diff --git a/lib/tests/test.js b/lib/tests/test.js index 4f9d10755..3dcfbf10c 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -121,7 +121,7 @@ class Test { config(options, callback) { const self = this; - if (typeof(options) === 'function') { + if (typeof (options) === 'function') { callback = options; options = {}; } @@ -226,7 +226,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(); @@ -273,7 +273,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];