Companion for Weight v1.5 Follow Up (#5949)

* updates

* remove new

* fix up some stuff

* fix cargo files

* fix

* fix template

* update lockfile for {"substrate"}

* Update block_weights.rs

* remove unused

* remove unused

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabrizi
2022-09-01 20:00:51 +01:00
committed by GitHub
parent 75d49dfeb4
commit e28bf2e476
128 changed files with 969 additions and 968 deletions
@@ -48,8 +48,8 @@ impl WeighMultiAssets for MultiAssetFilter {
AssetTypes::Balances => balances_weight,
AssetTypes::Unknown => Weight::MAX,
})
.fold(Weight::new(), |acc, x| acc.saturating_add(x)),
Self::Wild(_) => balances_weight.scalar_saturating_mul(MAX_ASSETS as u64),
.fold(Weight::zero(), |acc, x| acc.saturating_add(x)),
Self::Wild(_) => balances_weight.saturating_mul(MAX_ASSETS as u64),
};
weight.ref_time()
@@ -66,7 +66,7 @@ impl WeighMultiAssets for MultiAssets {
AssetTypes::Balances => balances_weight,
AssetTypes::Unknown => Weight::MAX,
})
.fold(Weight::new(), |acc, x| acc.saturating_add(x));
.fold(Weight::zero(), |acc, x| acc.saturating_add(x));
weight.ref_time()
}