Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions frame/identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ pub mod pallet {
NotOwned,
/// The provided judgement was for a different identity.
JudgementForDifferentIdentity,
/// Error thrown when repatriate_reserved returns an error.
RepatriateReservedError,
}

#[pallet::event]
Expand Down Expand Up @@ -788,12 +790,13 @@ pub mod pallet {
match id.judgements.binary_search_by_key(&reg_index, |x| x.0) {
Ok(position) => {
if let Judgement::FeePaid(fee) = id.judgements[position].1 {
let _ = T::Currency::repatriate_reserved(
T::Currency::repatriate_reserved(
&target,
&sender,
fee,
BalanceStatus::Free,
);
)
.map_err(|_| Error::<T>::RepatriateReservedError)?;
}
id.judgements[position] = item
},
Expand Down