mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 14:45:42 +00:00
Fix typos and markdown (#2388)
* Fix typos * Align properly * Update core/consensus/slots/src/lib.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/network/src/test/mod.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/finality-grandpa/src/communication/mod.rs Co-Authored-By: cmichi <mich@elmueller.net> * Update core/consensus/common/src/import_queue.rs Co-Authored-By: cmichi <mich@elmueller.net>
This commit is contained in:
committed by
Bastian Köcher
parent
f0202aa425
commit
a0e0d9b03d
@@ -255,7 +255,7 @@ pub fn refund_unused_gas<T: Trait>(
|
||||
}
|
||||
}
|
||||
|
||||
/// A little handy utility for converting a value in balance units into approximitate value in gas units
|
||||
/// A little handy utility for converting a value in balance units into approximate value in gas units
|
||||
/// at the given gas price.
|
||||
pub fn approx_gas_for_balance<T: Trait>(gas_price: BalanceOf<T>, balance: BalanceOf<T>) -> T::Gas {
|
||||
let amount_in_gas: BalanceOf<T> = balance / gas_price;
|
||||
@@ -316,7 +316,7 @@ mod tests {
|
||||
struct DoubleTokenMetadata {
|
||||
multiplier: u64,
|
||||
}
|
||||
/// A simple token that charges for the given amount multipled to
|
||||
/// A simple token that charges for the given amount multiplied to
|
||||
/// a multiplier taken from a given metadata.
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||
struct DoubleToken(u64);
|
||||
@@ -324,7 +324,7 @@ mod tests {
|
||||
impl Token<Test> for DoubleToken {
|
||||
type Metadata = DoubleTokenMetadata;
|
||||
fn calculate_amount(&self, metadata: &DoubleTokenMetadata) -> u64 {
|
||||
// Probably you want to use saturating mul in producation code.
|
||||
// Probably you want to use saturating mul in production code.
|
||||
self.0 * metadata.multiplier
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user