From 3ad6baf62bc6d5f064b9a16259fb4a4c32a1d614 Mon Sep 17 00:00:00 2001 From: dockercui Date: Mon, 22 Apr 2024 21:06:58 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: dockercui --- .../noir-contracts/contracts/auth_contract/src/main.nr | 2 +- noir/noir-repo/tooling/nargo/src/ops/execute.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/noir-projects/noir-contracts/contracts/auth_contract/src/main.nr b/noir-projects/noir-contracts/contracts/auth_contract/src/main.nr index 765107b0ea9..04385202409 100644 --- a/noir-projects/noir-contracts/contracts/auth_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/auth_contract/src/main.nr @@ -20,7 +20,7 @@ contract Auth { assert(!admin.is_zero(), "invalid admin"); storage.admin.initialize(admin); // Note that we don't initialize authorized with any value: because storage defaults to 0 it'll have a 'post' - // value of 0 and block of change 0, meaning it is effectively autoinitialized at the zero adddress. + // value of 0 and block of change 0, meaning it is effectively autoinitialized at the zero address. } #[aztec(public)] diff --git a/noir/noir-repo/tooling/nargo/src/ops/execute.rs b/noir/noir-repo/tooling/nargo/src/ops/execute.rs index 97584aff150..8dae2b7d90d 100644 --- a/noir/noir-repo/tooling/nargo/src/ops/execute.rs +++ b/noir/noir-repo/tooling/nargo/src/ops/execute.rs @@ -106,7 +106,7 @@ impl<'a, B: BlackBoxFunctionSolver, F: ForeignCallExecutor> ProgramExecutor<'a, return Err(NargoError::ExecutionError(match call_stack { Some(call_stack) => { // First check whether we have a runtime assertion message that should be resolved on an ACVM failure - // If we do not have a runtime assertion message, we check wether the error is a brillig error with a user-defined message, + // If we do not have a runtime assertion message, we check weather the error is a brillig error with a user-defined message, // and finally we should check whether the circuit has any hardcoded messages associated with a specific `OpcodeLocation`. // Otherwise return the provided opcode resolution error. if let Some(assert_message) = assert_message {