Change connection

This commit is contained in:
Anthony Laibe 2018-07-31 10:16:56 +01:00 committed by Iuri Matias
parent d68fe61606
commit 2605721579
2 changed files with 11 additions and 2 deletions

View File

@ -247,7 +247,7 @@ class Test {
self.engine.events.request("contracts:reset:dependencies", next);
},
function compileContracts(next) {
if (Object.keys(self.builtContracts).length > 0) {
if (Object.keys(self.builtContracts).length > 0 && !self.resetServices) {
return next();
}
console.info('Compiling contracts'.cyan);
@ -261,6 +261,12 @@ class Test {
next();
});
},
function resetContracts(next) {
self.engine.contractsManager.contracts = cloneDeep(self.builtContracts);
self.engine.contractsManager.compiledContracts = cloneDeep(self.compiledContracts);
self.engine.contractsManager.contractDependencies = {};
next();
},
function deploy(next) {
self._deploy(options, (err, accounts) => {
if (err) {

View File

@ -12,7 +12,10 @@ config({
"mnemonic": "example exile argue silk regular smile grass bomb merge arm assist farm",
balance: "5ether"
}
]
],
"host": "localhost",
"port": 8545,
"type": "rpc"
},
contracts: {
"SimpleStorage": {