From 2219880362207b292e22f3b7f80ca1573eda9a7a Mon Sep 17 00:00:00 2001 From: HermanL02 Date: Thu, 1 May 2025 15:36:14 -0300 Subject: [PATCH] fix: submission set to false at the end of submission --- worker/src/task/2-submission.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/src/task/2-submission.ts b/worker/src/task/2-submission.ts index 632a0b5..6118ad0 100644 --- a/worker/src/task/2-submission.ts +++ b/worker/src/task/2-submission.ts @@ -91,6 +91,8 @@ export async function submission(roundNumber: number) : Promise { console.log("[SUBMISSION] Storing submission on IPFS..."); const cid = await storeFile({ signature }, "submission.json"); console.log("[SUBMISSION] Submission stored successfully. CID:", cid); + // If done please set the shouldMakeSubmission to false + await namespaceWrapper.storeSet(`shouldMakeSubmission`, "false"); return cid || void 0; } catch (error) { console.error("[SUBMISSION] Error during submission process:", error);