Fix typos and add GH action that checks them (#311)

* add typos workflow

* fix existing typos

* fix
This commit is contained in:
Gustavo Gonzalez
2024-09-12 09:05:48 -04:00
committed by GitHub
parent 42470b2784
commit a4c6cee4c6
11 changed files with 27 additions and 14 deletions
+1 -1
View File
@@ -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,
}
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.
+3 -3
View File
@@ -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,