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
2020-10-01 10:24:34 +02:00
committed by GitHub
parent a56f90fa9a
commit 6182878933
6 changed files with 39 additions and 10 deletions
+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,