File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -352,13 +352,16 @@ decl_module! {
352
352
/// - The weight of the `call` + 10,000.
353
353
/// - One storage lookup to check account is recovered by `who`. O(1)
354
354
/// # </weight>
355
- #[ 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
- ) ]
355
+ #[ weight = {
356
+ let dispatch_info = call. get_dispatch_info( ) ;
357
+ (
358
+ dispatch_info. weight
359
+ . saturating_add( 10_000 )
360
+ // AccountData for inner call origin accountdata.
361
+ . saturating_add( T :: DbWeight :: get( ) . reads_writes( 1 , 1 ) ) ,
362
+ dispatch_info. class,
363
+ )
364
+ } ]
362
365
fn as_recovered( origin,
363
366
account: T :: AccountId ,
364
367
call: Box <<T as Config >:: Call >
You can’t perform that action at this time.
0 commit comments