mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 08:41:02 +00:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user