Fix scoping
This commit is contained in:
parent
5cf9048099
commit
2642325868
|
@ -45,6 +45,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
|
|||
function getConfig(callback) {
|
||||
var config = new Config({env: 'test', logger: logger});
|
||||
config.loadConfigFiles({
|
||||
embarkConfig: self.options.embarkConfig || 'embark.json',
|
||||
interceptLogs: false
|
||||
});
|
||||
config.contractsConfig = {contracts: contractsConfig};
|
||||
|
@ -88,6 +89,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
|
|||
}
|
||||
self.web3.eth.defaultAccount = accounts[0];
|
||||
RunCode.doEval(result, self.web3); // jshint ignore:line
|
||||
if (self.options.logging) {
|
||||
cb(logger);
|
||||
} else {
|
||||
cb();
|
||||
|
|
Loading…
Reference in New Issue