Skip to content

Commit

Permalink
Fixing requested roles storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Aug 10, 2023
1 parent 2c5a565 commit 9246d80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pallets/roles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ pub mod pallet {
},
Err(e) => return Err(e),
}

RequestedRoles::<T>::remove(&account);



Expand Down Expand Up @@ -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::<T>::remove(&candidate);
}


match result{
Expand Down

0 comments on commit 9246d80

Please sign in to comment.