Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vm/src/compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn check_wasm_exports(module: &ParsedWasm, logs: Logger) -> VmResult<()> {

/// Checks if the import requirements of the contract are satisfied.
/// When this is not the case, we either have an incompatibility between contract and VM
/// or a error in the contract.
/// or an error in the contract.
fn check_wasm_imports(
module: &ParsedWasm,
supported_imports: &[&str],
Expand Down
6 changes: 3 additions & 3 deletions packages/vm/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ where
);

// Reads human address from source_ptr and checks if it is valid.
// 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.
// 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.
// Ownership of the input pointer is not transferred to the host.
env_imports.insert(
"addr_validate",
Expand All @@ -143,15 +143,15 @@ where
Function::new_typed_with_env(&mut store, &fe, do_addr_humanize),
);

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

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