diff --git a/ts-src/tasks/l1.ts b/ts-src/tasks/l1.ts index 7146f8d..95f9b25 100644 --- a/ts-src/tasks/l1.ts +++ b/ts-src/tasks/l1.ts @@ -44,6 +44,12 @@ task("l1:whitelist", "Whitelist an sequencer address") console.log(`Removing ${args["addr"]} from whitelist`); } + const whitelisted = await lockingManager.whitelist(addr); + if (whitelisted == enable) { + console.log("No changes"); + return; + } + const tx = await lockingManager.setWhitelist(addr, enable); console.log("Confrimed at", tx.hash); });