From 9246d80762bbb3e80d886b4c9e83d2587ecbfb6b Mon Sep 17 00:00:00 2001 From: Kazunobu Ndong Date: Thu, 10 Aug 2023 16:18:13 +0900 Subject: [PATCH] Fixing requested roles storage --- pallets/roles/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pallets/roles/src/lib.rs b/pallets/roles/src/lib.rs index b8382a6a..d5d03494 100644 --- a/pallets/roles/src/lib.rs +++ b/pallets/roles/src/lib.rs @@ -463,6 +463,8 @@ pub mod pallet { }, Err(e) => return Err(e), } + + RequestedRoles::::remove(&account); @@ -570,9 +572,6 @@ pub mod pallet { let proposal_all = Self::get_requested_role(&candidate).unwrap(); let index = proposal_all.proposal_index; let result = Self::closing_vote(caller.clone(),candidate.clone()); - if proposal_all.approved==true{ - RequestedRoles::::remove(&candidate); - } match result{