From 673847be0ec79d37ffd0920d70b6cff28bb1144d Mon Sep 17 00:00:00 2001 From: shangchengbabaiban Date: Mon, 29 Jul 2024 21:49:15 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: shangchengbabaiban --- crates/blockifier/src/execution/entry_point.rs | 2 +- crates/blockifier/src/execution/syscalls/syscalls_test.rs | 4 ++-- crates/blockifier/src/transaction/account_transaction.rs | 2 +- crates/blockifier/src/versioned_constants.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/blockifier/src/execution/entry_point.rs b/crates/blockifier/src/execution/entry_point.rs index cb2c298529..0c2439db2a 100644 --- a/crates/blockifier/src/execution/entry_point.rs +++ b/crates/blockifier/src/execution/entry_point.rs @@ -210,7 +210,7 @@ impl EntryPointExecutionContext { } TransactionInfo::Current(context) => { // TODO(Ori, 1/2/2024): Write an indicative expect message explaining why the - // convertion works. + // conversion works. context .l1_resource_bounds()? .max_amount diff --git a/crates/blockifier/src/execution/syscalls/syscalls_test.rs b/crates/blockifier/src/execution/syscalls/syscalls_test.rs index d57ad5f770..43eb0f36ea 100644 --- a/crates/blockifier/src/execution/syscalls/syscalls_test.rs +++ b/crates/blockifier/src/execution/syscalls/syscalls_test.rs @@ -458,7 +458,7 @@ fn test_get_execution_info( ( Resource::L1Gas, // TODO(Ori, 1/2/2024): Write an indicative expect message explaining why the - // convertion works. + // conversion works. ResourceBounds { max_amount: max_amount .0 @@ -793,7 +793,7 @@ fn test_send_message_to_l1() { vec![ to_address, // TODO(Ori, 1/2/2024): Write an indicative expect message explaining why the - // convertion works. + // conversion works. felt!(u64::try_from(payload.len()).expect("Failed to convert usize to u64.")), ], payload.clone(), diff --git a/crates/blockifier/src/transaction/account_transaction.rs b/crates/blockifier/src/transaction/account_transaction.rs index 51ee47b660..02b1a51b91 100644 --- a/crates/blockifier/src/transaction/account_transaction.rs +++ b/crates/blockifier/src/transaction/account_transaction.rs @@ -203,7 +203,7 @@ impl AccountTransaction { return Err(TransactionFeeError::MaxL1GasAmountTooLow { max_l1_gas_amount, // TODO(Ori, 1/2/2024): Write an indicative expect message explaining why - // the convertion works. + // the conversion works. minimal_l1_gas_amount: (minimal_l1_gas_amount .try_into() .expect("Failed to convert u128 to u64.")), diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index a975ab0e98..7117cd6900 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -298,7 +298,7 @@ pub struct OsResources { // Mapping from every syscall to its execution resources in the OS (e.g., amount of Cairo // steps). // TODO(Arni, 14/6/2023): Update `GetBlockHash` values. - // TODO(ilya): Consider moving the resources of a keccak round to a seperate dict. + // TODO(ilya): Consider moving the resources of a keccak round to a separate dict. execute_syscalls: HashMap, // Mapping from every transaction to its extra execution resources in the OS, // i.e., resources that don't count during the execution itself. @@ -509,7 +509,7 @@ pub struct OsConstants { } impl OsConstants { - // List of additinal os constants, beside the gas cost and validate rounding constants, that are + // List of additional os constants, beside the gas cost and validate rounding constants, that are // not used by the blockifier but included for transparency. These constanst will be ignored // during the creation of the struct containing the gas costs.