Skip to content

Commit

Permalink
chore: approving templates in all iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Oct 31, 2023
1 parent 114861c commit 64e1ded
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/deploy/setupContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 64e1ded

Please sign in to comment.