Skip to content

Commit

Permalink
Uncomment task
Browse files Browse the repository at this point in the history
  • Loading branch information
nledo committed Apr 19, 2024
1 parent 2bee0e0 commit c49a090
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions packages/sdk/tasks/manageEnsRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,31 +244,31 @@ task("encodeApplyPresetsTestRocket").setAction(async (taskArgs, hre) => {
console.log(`Transaction builder JSON written to ${filePath}`)
})

// task("encodeApplyPresetsTestSafe").setAction(async (taskArgs, hre) => {
// const { config } = await processArgs(taskArgs, hre)
// const txBatches = await encodeApplyPresetTxBuilder(
// config.MODULE,
// config.ROLE_IDS.MANAGER,
// test_safe_preset,
// { AVATAR: config.AVATAR },
// {
// network: config.NETWORK as NetworkId,
// }
// )
task("encodeApplyPresetsTestSafe").setAction(async (taskArgs, hre) => {
const { config } = await processArgs(taskArgs, hre)
const txBatches = await encodeApplyPresetTxBuilder(
config.MODULE,
config.ROLE_IDS.MANAGER,
test_safe_preset,
{ AVATAR: config.AVATAR },
{
network: config.NETWORK as NetworkId,
}
)

// const filePath = path.join(
// __dirname,
// "..",
// "/presets-output/mainnet/ENS/test_safe_payload.json"
// )
// if (!existsSync(filePath)) {
// // Create the directory structure if it doesn't exist
// mkdirSync(path.dirname(filePath), { recursive: true })
// }
// // Write the JSON data to the file
// writeFileSync(filePath, JSON.stringify(txBatches, undefined, 2))
// console.log(`Transaction builder JSON written to ${filePath}`)
// })
const filePath = path.join(
__dirname,
"..",
"/presets-output/mainnet/ENS/test_safe_payload.json"
)
if (!existsSync(filePath)) {
// Create the directory structure if it doesn't exist
mkdirSync(path.dirname(filePath), { recursive: true })
}
// Write the JSON data to the file
writeFileSync(filePath, JSON.stringify(txBatches, undefined, 2))
console.log(`Transaction builder JSON written to ${filePath}`)
})

task("encodeApplyPresetsTestKPK").setAction(async (taskArgs, hre) => {
const { config } = await processArgs(taskArgs, hre)
Expand Down

0 comments on commit c49a090

Please sign in to comment.