Fix weight for inner call with new origin (#7196)

* fix weight for inner call with new origin

* fix
This commit is contained in:
Guillaume Thiolliere authored and GitHub committed 2020-10-01 08:24:34 +00:00
1 parent a56f90fa9a
commit 6182878933
6 files changed
+39 -10

No files matched your search

+3 -2
View File
@@ -237,8 +237,9 @@ decl_module! {
/// # </weight>
#[weight = (
T::WeightInfo::as_multi_threshold_1(call.using_encoded(|c| c.len() as u32))
.saturating_add(call.get_dispatch_info().weight
),
.saturating_add(call.get_dispatch_info().weight)
// AccountData for inner call origin accountdata.
.saturating_add(T::DbWeight::get().reads_writes(1, 1)),
call.get_dispatch_info().class,
)]
fn as_multi_threshold_1(origin,