From 9d72238354b57057fd224eb4b1f2c661b54f0240 Mon Sep 17 00:00:00 2001 From: suhyeon <36615016+shlee-lab@users.noreply.github.com> Date: Sun, 30 Nov 2025 03:38:42 +0900 Subject: [PATCH] Update keeperBotShutter.ts Fix decode to allow '-' characters in justification otherwise justification with '-' will spit an error --- contracts/scripts/keeperBotShutter.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contracts/scripts/keeperBotShutter.ts b/contracts/scripts/keeperBotShutter.ts index fff463513..47e5004c1 100644 --- a/contracts/scripts/keeperBotShutter.ts +++ b/contracts/scripts/keeperBotShutter.ts @@ -35,10 +35,12 @@ const logger = loggerFactory.createLogger(loggerOptions); const decode = (message: string) => { const SEPARATOR = "-"; const parts = message.split(SEPARATOR); - if (parts.length !== 3) { + if (parts.length < 3) { throw Error(`Malformed decrypted message (${message})`); } - const [choice, salt, justification] = parts; + const [choice, salt, ...rest] = parts; + const justification = rest.join(SEPARATOR); + return { choice: BigInt(choice), salt,