fix: submission set to false at the end of submission

This commit is contained in:
2025-05-01 15:36:14 -03:00
parent acbbb91bbf
commit 2219880362

View File

@ -91,6 +91,8 @@ export async function submission(roundNumber: number) : Promise<string | void> {
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);