We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5457fe6 commit bb5dfbaCopy full SHA for bb5dfba
src/lib.rs
@@ -352,7 +352,13 @@ decl_module! {
352
/// - The weight of the `call` + 10,000.
353
/// - One storage lookup to check account is recovered by `who`. O(1)
354
/// # </weight>
355
- #[weight = (call.get_dispatch_info().weight + 10_000, call.get_dispatch_info().class)]
+ #[weight = (
356
+ call.get_dispatch_info().weight
357
+ .saturating_add(10_000)
358
+ // AccountData for inner call origin accountdata.
359
+ .saturating_add(T::DbWeight::get().reads_writes(1, 1)),
360
+ call.get_dispatch_info().class
361
+ )]
362
fn as_recovered(origin,
363
account: T::AccountId,
364
call: Box<<T as Trait>::Call>
0 commit comments