From 64e1ded40f8d41d15220a55741ded37c4cf1c826 Mon Sep 17 00:00:00 2001 From: Aitor <1726644+aaitor@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:24:42 +0100 Subject: [PATCH] chore: approving templates in all iterations --- scripts/deploy/setupContracts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/deploy/setupContracts.js b/scripts/deploy/setupContracts.js index 20820e35..83c65e2f 100644 --- a/scripts/deploy/setupContracts.js +++ b/scripts/deploy/setupContracts.js @@ -34,7 +34,6 @@ async function approveTemplate({ } async function setupTemplate({ verbose, TemplateStoreManagerInstance, templateName, addressBook, roles } = {}) { -// const templateAddress = addressBook[templateName] instanceof Object ? addressBook[templateName].address : addressBook[templateName] const templateAddress = resolveAddress(templateName, addressBook) console.log(` setupTemplate :: ${templateName} :: ${templateAddress}`) @@ -132,11 +131,11 @@ async function setupContracts({ if (!addresses.stage) { addresses.stage = 0 } - if (addressBook.TemplateStoreManager && addresses.stage < 1) { + if (addressBook.TemplateStoreManager) { // && addresses.stage < 1) { // Temporary change to validate templates in all the iterations const TemplateStoreManagerInstance = artifacts.TemplateStoreManager const templates = Object.keys(addressBook).filter(a => a.match(/Template$/)) - + console.log(`Templates Found: ${JSON.stringify(templates)}`) for (const templateName of templates) { console.log(`Setting up template: ${templateName}`) await setupTemplate({