We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 592243f + 9d72238 commit e16934eCopy full SHA for e16934e
contracts/scripts/keeperBotShutter.ts
@@ -35,10 +35,12 @@ const logger = loggerFactory.createLogger(loggerOptions);
35
const decode = (message: string) => {
36
const SEPARATOR = "-";
37
const parts = message.split(SEPARATOR);
38
- if (parts.length !== 3) {
+ if (parts.length < 3) {
39
throw Error(`Malformed decrypted message (${message})`);
40
}
41
- const [choice, salt, justification] = parts;
+ const [choice, salt, ...rest] = parts;
42
+ const justification = rest.join(SEPARATOR);
43
+
44
return {
45
choice: BigInt(choice),
46
salt,
0 commit comments