mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +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) {
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user