mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Improve call, and usage in pallet utility (#9418)
* WIP * WIP * WIP * add some tests and limit * remove wip test * fmt * Update bin/node/runtime/src/lib.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * fmt * use primitives allocation limit Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
27d4177f93
commit
38db14089b
@@ -335,7 +335,7 @@ pub mod pallet {
|
||||
))]
|
||||
pub fn set_identity(
|
||||
origin: OriginFor<T>,
|
||||
info: IdentityInfo<T::MaxAdditionalFields>,
|
||||
info: Box<IdentityInfo<T::MaxAdditionalFields>>,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
let sender = ensure_signed(origin)?;
|
||||
let extra_fields = info.additional.len() as u32;
|
||||
@@ -346,11 +346,14 @@ pub mod pallet {
|
||||
Some(mut id) => {
|
||||
// Only keep non-positive judgements.
|
||||
id.judgements.retain(|j| j.1.is_sticky());
|
||||
id.info = info;
|
||||
id.info = *info;
|
||||
id
|
||||
},
|
||||
None =>
|
||||
Registration { info, judgements: BoundedVec::default(), deposit: Zero::zero() },
|
||||
None => Registration {
|
||||
info: *info,
|
||||
judgements: BoundedVec::default(),
|
||||
deposit: Zero::zero(),
|
||||
},
|
||||
};
|
||||
|
||||
let old_deposit = id.deposit;
|
||||
|
||||
Reference in New Issue
Block a user