Skip to content

Commit

Permalink
Slowing down deployment (waits)
Browse files Browse the repository at this point in the history
  • Loading branch information
toledoroy committed Jun 21, 2022
1 parent dde4cce commit e9a688d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async function main() {
if(!!hubContract){ //If Deployed Together
try{
//Set to HUB
hubContract.setAssoc("avatar", contractAddr.avatar);
await hubContract.setAssoc("avatar", contractAddr.avatar);
//Log
console.log("Registered Avatar Contract to Hub");
}
Expand All @@ -166,6 +166,8 @@ async function main() {
contractAddr.history = actionContract.address;
*/

console.log("BEFORE History Contract Deployment");

//Deploy History Upgradable (UUDP)
const proxyActionRepo = await ethers.getContractFactory("ActionRepoTrackerUp").then(Contract =>
upgrades.deployProxy(Contract,
Expand All @@ -176,6 +178,8 @@ async function main() {
);
await proxyActionRepo.deployed();

console.log("Deployed History Contract", proxyActionRepo.address);

//Set Address
contractAddr.history = proxyActionRepo.address;
//Log
Expand All @@ -187,7 +191,7 @@ async function main() {
console.log("Will Register History to Hub");

//Set to HUB
hubContract.setAssoc("history", contractAddr.history);
await hubContract.setAssoc("history", contractAddr.history);
}
catch(error){
console.error("Failed to Set History Contract to Hub", error);
Expand Down

0 comments on commit e9a688d

Please sign in to comment.