From c96987cec8a212d0be40683b7debaffe73dee2aa Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Mon, 29 Jan 2024 14:39:19 +0100 Subject: [PATCH] review poka complete comment --- pallets/certification/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pallets/certification/src/lib.rs b/pallets/certification/src/lib.rs index 5ea2066b7..6da865932 100644 --- a/pallets/certification/src/lib.rs +++ b/pallets/certification/src/lib.rs @@ -409,7 +409,8 @@ pub mod pallet { } /// perform cert renewal if exisiting, else error with CertDoesNotExist - // must be transactional + // must be used in transactional context + // (it can fail if certification does not exist after having modified state) fn try_renew_cert( block_number: T::BlockNumber, issuer: T::IdtyIndex, -- GitLab