use for to avoid multiple callback calls
This commit is contained in:
parent
4976408c11
commit
1f95418504
|
@ -118,7 +118,7 @@ class DeployManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: convert to for to avoid repeated callback
|
// TODO: convert to for to avoid repeated callback
|
||||||
onDeployCode.forEach((cmd) => {
|
for(let cmd of onDeployCode) {
|
||||||
self.logger.info("executing: " + cmd);
|
self.logger.info("executing: " + cmd);
|
||||||
try {
|
try {
|
||||||
RunCode.doEval(cmd, web3);
|
RunCode.doEval(cmd, web3);
|
||||||
|
@ -128,7 +128,7 @@ class DeployManager {
|
||||||
}
|
}
|
||||||
return callback(new Error(e));
|
return callback(new Error(e));
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
callback(null, contractsManager);
|
callback(null, contractsManager);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue