Skip to content

Commit d1c65e3

Browse files
committed
chore: fix typos
Signed-off-by: JohnWickkkk7 <johnwickjonwik@gmail.com>
1 parent f8e5bb1 commit d1c65e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/codegen/encoding/scale_encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl AbiEncoding for ScaleEncoding {
445445
// `codegen::abi_encode()` also returns the actual encoded size,
446446
// so slightly overestimating it shouldn't matter.
447447
// However, the actual length of the encoded data produced by `codegen::abi_encode()`
448-
// is ignored in some places, wich results in buggy contracts if we have not an exact estimate.
448+
// is ignored in some places, which results in buggy contracts if we have not an exact estimate.
449449
// Once this is fixed (the encoded size return by `codegen::abi_encode()` must never be ignored),
450450
// this can just be always 4 bytes .
451451
encode_compact(size, None, None, vartab, cfg)

src/codegen/undefined_variable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn check_variables_in_expression(
7272
instr.recurse_expressions(&mut params, find_undefined_variables_in_expression);
7373
}
7474

75-
/// Auxiliar function for expression.recurse. It checks if a variable is read before being defined
75+
/// Auxiliary function for expression.recurse. It checks if a variable is read before being defined
7676
pub fn find_undefined_variables_in_expression(
7777
exp: &Expression,
7878
ctx: &mut FindUndefinedVariablesParams,

0 commit comments

Comments
 (0)