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
@@ -40,7 +40,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,
}
+3 -3
View File
@@ -68,13 +68,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;
@@ -271,7 +271,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,