mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 02:07:55 +00:00
Fix typos and add GH action that checks them (#311)
* add typos workflow * fix existing typos * fix
This commit is contained in:
@@ -45,7 +45,7 @@ pub enum Subcommand {
|
||||
|
||||
/// Try-runtime has migrated to a standalone
|
||||
/// [CLI](<https://github.com/paritytech/try-runtime-cli>). The subcommand exists as a stub and
|
||||
/// deprecation notice. It will be removed entirely some time after Janurary
|
||||
/// deprecation notice. It will be removed entirely some time after January
|
||||
/// 2024.
|
||||
TryRuntime,
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ pub fn db_config_dir(config: &Configuration) -> PathBuf {
|
||||
config.base_path.config_dir(config.chain_spec.id())
|
||||
}
|
||||
|
||||
/// Avalailable frontier backend types.
|
||||
/// Available frontier backend types.
|
||||
#[derive(Debug, Copy, Clone, Default, clap::ValueEnum)]
|
||||
pub enum BackendType {
|
||||
/// Either RocksDb or ParityDb as per inherited from the global backend settings.
|
||||
|
||||
@@ -14,7 +14,7 @@ pub mod currency {
|
||||
pub const GRAND: Balance = 1_000 * DOLLARS;
|
||||
|
||||
/// NB: Notice, that existential deposit was set to 0 intentionally to increase compatibility with EVM.
|
||||
/// Hovewer, it leads to some risks, most importantly state bloating.
|
||||
/// However, it leads to some risks, most importantly state bloating.
|
||||
/// We acknowledge that there is such a risk and we have an opened issue to resolve it:
|
||||
/// https://github.com/OpenZeppelin/polkadot-runtime-templates/issues/195
|
||||
/// If you read this message please check out this issue to see if it is resolved and what can you do to implement the fix.
|
||||
|
||||
@@ -75,13 +75,13 @@ fn main() {
|
||||
};
|
||||
|
||||
ziggy::fuzz!(|data: &[u8]| {
|
||||
let mut iteratable = Data::from_data(data);
|
||||
let mut iterable = Data::from_data(data);
|
||||
|
||||
// Max weight for a block.
|
||||
let max_weight: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND * 2, 0);
|
||||
|
||||
let extrinsics: Vec<(Option<u32>, usize, RuntimeCall)> =
|
||||
iteratable.extract_extrinsics::<RuntimeCall>();
|
||||
iterable.extract_extrinsics::<RuntimeCall>();
|
||||
|
||||
if extrinsics.is_empty() {
|
||||
return;
|
||||
@@ -278,7 +278,7 @@ fn main() {
|
||||
|
||||
let total_issuance = pallet_balances::TotalIssuance::<Runtime>::get();
|
||||
let counted_issuance = counted_free + counted_reserved;
|
||||
// The reason we do not simply use `!=` here is that some balance might be transfered to another chain via XCM.
|
||||
// The reason we do not simply use `!=` here is that some balance might be transferred to another chain via XCM.
|
||||
// If we find some kind of workaround for this, we could replace `<` by `!=` here and make the check stronger.
|
||||
assert!(
|
||||
total_issuance <= counted_issuance,
|
||||
|
||||
Reference in New Issue
Block a user