From 341cde18edf70d017c7e633d1878b3d81bed8d64 Mon Sep 17 00:00:00 2001 From: Roy Date: Fri, 8 Jul 2022 16:56:35 -0700 Subject: [PATCH] RuleRepo Deployment & Validation --- scripts/deploy.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.ts b/scripts/deploy.ts index 0b2981d..cd0a580 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -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; @@ -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;