File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -223,13 +223,16 @@ decl_module! {
223
223
/// - DB Weight: None
224
224
/// - Plus Call Weight
225
225
/// # </weight>
226
- #[ weight = (
227
- T :: WeightInfo :: as_multi_threshold_1( call. using_encoded( |c| c. len( ) as u32 ) )
228
- . saturating_add( call. get_dispatch_info( ) . weight)
229
- // AccountData for inner call origin accountdata.
230
- . saturating_add( T :: DbWeight :: get( ) . reads_writes( 1 , 1 ) ) ,
231
- call. get_dispatch_info( ) . class,
232
- ) ]
226
+ #[ weight = {
227
+ let dispatch_info = call. get_dispatch_info( ) ;
228
+ (
229
+ T :: WeightInfo :: as_multi_threshold_1( call. using_encoded( |c| c. len( ) as u32 ) )
230
+ . saturating_add( dispatch_info. weight)
231
+ // AccountData for inner call origin accountdata.
232
+ . saturating_add( T :: DbWeight :: get( ) . reads_writes( 1 , 1 ) ) ,
233
+ dispatch_info. class,
234
+ )
235
+ } ]
233
236
fn as_multi_threshold_1( origin,
234
237
other_signatories: Vec <T :: AccountId >,
235
238
call: Box <<T as Config >:: Call >,
You can’t perform that action at this time.
0 commit comments