Skip to content

Commit c201867

Browse files
authored
Fix weight for inner call with new origin (#7196)
* fix weight for inner call with new origin * fix
1 parent 76f3703 commit c201867

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ decl_module! {
237237
/// # </weight>
238238
#[weight = (
239239
T::WeightInfo::as_multi_threshold_1(call.using_encoded(|c| c.len() as u32))
240-
.saturating_add(call.get_dispatch_info().weight
241-
),
240+
.saturating_add(call.get_dispatch_info().weight)
241+
// AccountData for inner call origin accountdata.
242+
.saturating_add(T::DbWeight::get().reads_writes(1, 1)),
242243
call.get_dispatch_info().class,
243244
)]
244245
fn as_multi_threshold_1(origin,

0 commit comments

Comments
 (0)