From 9e0ed8b2019da1fe408ce67b43f7a216d8ea2dd8 Mon Sep 17 00:00:00 2001 From: Cyrille Derche Date: Mon, 22 Jul 2024 19:37:19 +0200 Subject: [PATCH] make delete nonReentrant --- contracts/ApplicationManager.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/ApplicationManager.sol b/contracts/ApplicationManager.sol index 8876270..dfce1c9 100644 --- a/contracts/ApplicationManager.sol +++ b/contracts/ApplicationManager.sol @@ -54,7 +54,7 @@ contract ApplicationManager is emit ApplicationUpdated(id, applications[id]); } - function deleteApplication(uint id) external restricted { + function deleteApplication(uint id) external restricted nonReentrant { require(applicationExists(id), "Application does not exist"); addressUsed[applications[id].account] = false; emit ApplicationDeleted(id, applications[id]);