mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-13 07:36:21 +00:00
Change connection
This commit is contained in:
parent
d68fe61606
commit
2605721579
@ -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) {
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user