mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
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…
x
Reference in New Issue
Block a user