mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-24 04:35:04 +00:00
Rename from_components to from_parts (#12473)
* Rename `from_components` to `from_parts` * Fixes * Spelling
This commit is contained in:
1 parent
e1e5b7037a
commit
fbdfa84cd7
4 files changed
+7
-7
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user