Skip to content

Commit 393cd88

Browse files
authored
chore: fix some typos and inaccuracies (#2559)
1 parent 44bcfa4 commit 393cd88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/vm/src/compatibility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn check_wasm_exports(module: &ParsedWasm, logs: Logger) -> VmResult<()> {
207207

208208
/// Checks if the import requirements of the contract are satisfied.
209209
/// When this is not the case, we either have an incompatibility between contract and VM
210-
/// or a error in the contract.
210+
/// or an error in the contract.
211211
fn check_wasm_imports(
212212
module: &ParsedWasm,
213213
supported_imports: &[&str],

packages/vm/src/instance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ where
118118
);
119119

120120
// Reads human address from source_ptr and checks if it is valid.
121-
// Returns 0 on if the input is valid. Returns a non-zero memory location to a Region containing an UTF-8 encoded error string for invalid inputs.
121+
// Returns 0 if the input is valid. Returns a non-zero memory location to a Region containing an UTF-8 encoded error string for invalid inputs.
122122
// Ownership of the input pointer is not transferred to the host.
123123
env_imports.insert(
124124
"addr_validate",
@@ -143,15 +143,15 @@ where
143143
Function::new_typed_with_env(&mut store, &fe, do_addr_humanize),
144144
);
145145

146-
// Reads a list of points on of the subgroup G1 on the BLS12-381 curve and aggregates them down to a single element.
146+
// Reads a list of points of the subgroup G1 on the BLS12-381 curve and aggregates them down to a single element.
147147
// The "out_ptr" parameter has to be a pointer to a region with the sufficient size to fit an element of G1 (48 bytes).
148148
// Returns a u32 as a result. 0 signifies success, anything else may be converted into a `CryptoError`.
149149
env_imports.insert(
150150
"bls12_381_aggregate_g1",
151151
Function::new_typed_with_env(&mut store, &fe, do_bls12_381_aggregate_g1),
152152
);
153153

154-
// Reads a list of points on of the subgroup G2 on the BLS12-381 curve and aggregates them down to a single element.
154+
// Reads a list of points of the subgroup G2 on the BLS12-381 curve and aggregates them down to a single element.
155155
// The "out_ptr" parameter has to be a pointer to a region with the sufficient size to fit an element of G2 (96 bytes).
156156
// Returns a u32 as a result. 0 signifies success, anything else may be converted into a `CryptoError`.
157157
env_imports.insert(

0 commit comments

Comments
 (0)