Skip to content

Commit 87f6b8c

Browse files
authored
Fix spelling errors in multiple files (#2396)
* fix spelling errors in file_system_cache.rs * ifx spelling errors in instance.rs * fix spelling errors in ethereum.rs
1 parent 616cff4 commit 87f6b8c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

contracts/crypto-verify/src/ethereum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub fn decode_address(input: &str) -> StdResult<[u8; 20]> {
117117
));
118118
}
119119
if !input.starts_with("0x") {
120-
return Err(StdError::generic_err("Ethereum address must start wit 0x"));
120+
return Err(StdError::generic_err("Ethereum address must start with 0x"));
121121
}
122122
let data = hex::decode(&input[2..]).map_err(|_| StdError::generic_err("hex decoding error"))?;
123123
Ok(data.try_into().unwrap())

packages/vm/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ where
162162
// Four parameters, "ps", "qs", "r", "s", which all represent elements on the BLS12-381 curve (where "ps" and "r" are elements of the G1 subgroup, and "qs" and "s" elements of G2).
163163
// The "ps" and "qs" are interpreted as a continuous list of points in the subgroups G1 and G2 respectively.
164164
// Returns a single u32 which signifies the validity of the pairing equality.
165-
// Returns 0 if the pairing equality exists, 1 if it doesnt, and any other code may be interpreted as a `CryptoError`.
165+
// Returns 0 if the pairing equality exists, 1 if it doesn't, and any other code may be interpreted as a `CryptoError`.
166166
env_imports.insert(
167167
"bls12_381_pairing_equality",
168168
Function::new_typed_with_env(&mut store, &fe, do_bls12_381_pairing_equality),

packages/vm/src/modules/file_system_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use super::CachedModule;
5252
/// [issues with module deserialization](https://github.com/CosmWasm/wasmvm/issues/426).
5353
/// To work around this, the version was bumped to "v5" here to invalidate these corrupt caches.
5454
/// - **v6**:<br>
55-
/// Version for cosmwasm_vm 1.3+ which adds a sub-folder with the target identier for the modules.
55+
/// Version for cosmwasm_vm 1.3+ which adds a sub-folder with the target identifier for the modules.
5656
/// - **v7**:<br>
5757
/// New version because of Wasmer 2.3.0 -> 4 upgrade.
5858
/// This internally changes how rkyv is used for module serialization, making compatibility unlikely.
@@ -268,7 +268,7 @@ fn module_size(module_path: &Path) -> VmResult<usize> {
268268
}
269269

270270
/// Creates an identifier for the Wasmer `Target` that is used for
271-
/// cache invalidation. The output is reasonable human friendly to be useable
271+
/// cache invalidation. The output is reasonable human friendly to be usable
272272
/// in file path component.
273273
fn target_id(target: &Target) -> String {
274274
// Use a custom Hasher implementation to avoid randomization.

0 commit comments

Comments
 (0)