Skip to content

Commit efdf24c

Browse files
committed
if contract already deployed record it and generate api; also re-run ondeploy
1 parent 1ff7d4b commit efdf24c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/deploy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ Deploy.prototype.deploy_contracts = function(env) {
7070

7171
if (chainContract != undefined) {
7272
console.log("contract " + className + " is unchanged and already deployed at " + chainContract.address);
73+
this.deployedContracts[className] = contractAddress;
74+
this.execute_cmds(contract.onDeploy);
7375
}
7476
else {
7577

0 commit comments

Comments
 (0)