mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
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
|
||||
onDeployCode.forEach((cmd) => {
|
||||
for(let cmd of onDeployCode) {
|
||||
self.logger.info("executing: " + cmd);
|
||||
try {
|
||||
RunCode.doEval(cmd, web3);
|
||||
@ -128,7 +128,7 @@ class DeployManager {
|
||||
}
|
||||
return callback(new Error(e));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
callback(null, contractsManager);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user