mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 13:31:04 +00:00
Add missing weights to Identity module. (#4577)
This commit is contained in:
@@ -540,6 +540,7 @@ decl_module! {
|
|||||||
/// - At most O(2 * S + 1) storage mutations; codec complexity `O(1 * S + S * 1)`);
|
/// - At most O(2 * S + 1) storage mutations; codec complexity `O(1 * S + S * 1)`);
|
||||||
/// one storage-exists.
|
/// one storage-exists.
|
||||||
/// # </weight>
|
/// # </weight>
|
||||||
|
#[weight = SimpleDispatchInfo::FixedNormal(50_000)]
|
||||||
fn set_subs(origin, subs: Vec<(T::AccountId, Data)>) {
|
fn set_subs(origin, subs: Vec<(T::AccountId, Data)>) {
|
||||||
let sender = ensure_signed(origin)?;
|
let sender = ensure_signed(origin)?;
|
||||||
ensure!(<IdentityOf<T>>::exists(&sender), Error::<T>::NotFound);
|
ensure!(<IdentityOf<T>>::exists(&sender), Error::<T>::NotFound);
|
||||||
@@ -586,6 +587,7 @@ decl_module! {
|
|||||||
/// - `S + 2` storage deletions.
|
/// - `S + 2` storage deletions.
|
||||||
/// - One event.
|
/// - One event.
|
||||||
/// # </weight>
|
/// # </weight>
|
||||||
|
#[weight = SimpleDispatchInfo::FixedNormal(50_000)]
|
||||||
fn clear_identity(origin) {
|
fn clear_identity(origin) {
|
||||||
let sender = ensure_signed(origin)?;
|
let sender = ensure_signed(origin)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user