Fix scoping

This commit is contained in:
DeviateFish 2017-02-26 14:33:58 -08:00
parent 5cf9048099
commit 2642325868
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
function getConfig(callback) { function getConfig(callback) {
var config = new Config({env: 'test', logger: logger}); var config = new Config({env: 'test', logger: logger});
config.loadConfigFiles({ config.loadConfigFiles({
embarkConfig: self.options.embarkConfig || 'embark.json',
interceptLogs: false interceptLogs: false
}); });
config.contractsConfig = {contracts: contractsConfig}; config.contractsConfig = {contracts: contractsConfig};
@ -88,6 +89,7 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
} }
self.web3.eth.defaultAccount = accounts[0]; self.web3.eth.defaultAccount = accounts[0];
RunCode.doEval(result, self.web3); // jshint ignore:line RunCode.doEval(result, self.web3); // jshint ignore:line
if (self.options.logging) {
cb(logger); cb(logger);
} else { } else {
cb(); cb();