Skip to content
Open
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 src/codegen/encoding/scale_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ impl AbiEncoding for ScaleEncoding {
// `codegen::abi_encode()` also returns the actual encoded size,
// so slightly overestimating it shouldn't matter.
// However, the actual length of the encoded data produced by `codegen::abi_encode()`
// is ignored in some places, wich results in buggy contracts if we have not an exact estimate.
// is ignored in some places, which results in buggy contracts if we have not an exact estimate.
// Once this is fixed (the encoded size return by `codegen::abi_encode()` must never be ignored),
// this can just be always 4 bytes .
encode_compact(size, None, None, vartab, cfg)
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/undefined_variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub fn check_variables_in_expression(
instr.recurse_expressions(&mut params, find_undefined_variables_in_expression);
}

/// Auxiliar function for expression.recurse. It checks if a variable is read before being defined
/// Auxiliary function for expression.recurse. It checks if a variable is read before being defined
pub fn find_undefined_variables_in_expression(
exp: &Expression,
ctx: &mut FindUndefinedVariablesParams,
Expand Down
Loading