mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 14:27:57 +00:00
Rename from_components to from_parts (#12473)
* Rename `from_components` to `from_parts` * Fixes * Spelling
This commit is contained in:
@@ -109,7 +109,7 @@ where
|
||||
pub fn nested(&mut self, amount: Weight) -> Result<Self, DispatchError> {
|
||||
// NOTE that it is ok to allocate all available gas since it still ensured
|
||||
// by `charge` that it doesn't reach zero.
|
||||
let amount = Weight::from_components(
|
||||
let amount = Weight::from_parts(
|
||||
if amount.ref_time().is_zero() {
|
||||
self.gas_left().ref_time()
|
||||
} else {
|
||||
|
||||
@@ -239,7 +239,7 @@ parameter_types! {
|
||||
pub const ExistentialDeposit: u64 = 1;
|
||||
pub BlockWeights: frame_system::limits::BlockWeights = frame_system::limits::BlockWeights
|
||||
::with_sensible_defaults(
|
||||
Weight::from_components(2u64 * constants::WEIGHT_PER_SECOND.ref_time(), u64::MAX),
|
||||
Weight::from_parts(2u64 * constants::WEIGHT_PER_SECOND.ref_time(), u64::MAX),
|
||||
NORMAL_DISPATCH_RATIO,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user