Skip to content

Commit

Permalink
RuleRepo Deployment & Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
toledoroy committed Jul 8, 2022
1 parent 6f13ff6 commit 341cde1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const publicAddr = publicAddrs[chain];

async function main() {

//Validate Foundation
if(!publicAddr.openRepo || publicAddr.ruleRepo) throw "Must First Deploy Foundation Contracts on Chain:'"+chain+"'";

console.log("Running on Chain: ", chain);

let hubContract;
Expand Down Expand Up @@ -70,9 +73,11 @@ async function main() {
timeout: 120000
})
);

await hubContract.deployed();

//Set RuleRepo to Hub
hubContract.assocAdd("RULE_REPO", publicAddr.ruleRepo.address);

//Set Address
contractAddr.hub = hubContract.address;

Expand Down

0 comments on commit 341cde1

Please sign in to comment.