Rename from_components to from_parts (#12473)

* Rename `from_components` to `from_parts`

* Fixes

* Spelling
This commit is contained in:
Keith Yeung authored and GitHub committed 2022-10-11 16:35:54 +00:00
1 parent e1e5b7037a
commit fbdfa84cd7
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ pub struct BlockWeights {
impl Default for BlockWeights {
fn default() -> Self {
Self::with_sensible_defaults(
Weight::from_components(constants::WEIGHT_PER_SECOND.ref_time(), u64::MAX),
Weight::from_parts(constants::WEIGHT_PER_SECOND.ref_time(), u64::MAX),
DEFAULT_NORMAL_RATIO,
)
}