mirror of https://github.com/embarklabs/embark.git
fix error messages for non deployed contracts
This commit is contained in:
parent
eeb88010d5
commit
e5ec461f78
|
@ -32,6 +32,7 @@ class Test {
|
|||
this.contracts = {};
|
||||
this.events = new Events();
|
||||
this.ready = true;
|
||||
this.builtContracts = {};
|
||||
|
||||
this.web3 = new Web3();
|
||||
if (this.simOptions.node) {
|
||||
|
@ -52,6 +53,10 @@ class Test {
|
|||
logger: new TestLogger({logLevel: 'debug'})
|
||||
});
|
||||
|
||||
this.versions_default = this.engine.config.contractsConfig.versions;
|
||||
// Reset contract config to nothing to make sure we deploy only what we want
|
||||
this.engine.config.contractsConfig = {contracts: {}, versions: this.versions_default};
|
||||
|
||||
this.engine.startService("libraryManager");
|
||||
this.engine.startService("codeRunner");
|
||||
this.engine.startService("web3", {
|
||||
|
@ -109,8 +114,7 @@ class Test {
|
|||
const self = this;
|
||||
async.waterfall([
|
||||
function getConfig(next) {
|
||||
let _versions_default = self.engine.config.contractsConfig.versions;
|
||||
self.engine.config.contractsConfig = {contracts: config.contracts, versions: _versions_default};
|
||||
self.engine.config.contractsConfig = {contracts: config.contracts, versions: self.versions_default};
|
||||
self.engine.events.emit(constants.events.contractConfigChanged, self.engine.config.contractsConfig);
|
||||
next();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue