diff --git a/crates/node/core/src/utils.rs b/crates/node/core/src/utils.rs index 184cacfb3..4860a45c4 100644 --- a/crates/node/core/src/utils.rs +++ b/crates/node/core/src/utils.rs @@ -34,7 +34,7 @@ pub fn get_or_create_jwt_secret_from_path(path: &Path) -> Result( client: Client, id: BlockHashOrNumber, @@ -68,7 +68,7 @@ where Ok(header) } -/// Get a body from network based on header +/// Get a body from the network based on header pub async fn get_single_body( client: Client, header: SealedHeader, diff --git a/crates/optimism/bin/src/lib.rs b/crates/optimism/bin/src/lib.rs index 21c28f7c5..9f257b8be 100644 --- a/crates/optimism/bin/src/lib.rs +++ b/crates/optimism/bin/src/lib.rs @@ -15,7 +15,7 @@ //! - `min-error-logs`: Disables all logs below `error` level. //! - `min-warn-logs`: Disables all logs below `warn` level. //! - `min-info-logs`: Disables all logs below `info` level. This can speed up the node, since fewer -//! calls to the logging component is made. +//! calls to the logging component are made. //! - `min-debug-logs`: Disables all logs below `debug` level. //! - `min-trace-logs`: Disables all logs below `trace` level. #![doc( diff --git a/crates/optimism/cli/src/commands/init_state.rs b/crates/optimism/cli/src/commands/init_state.rs index 8317866ad..80e5c18cb 100644 --- a/crates/optimism/cli/src/commands/init_state.rs +++ b/crates/optimism/cli/src/commands/init_state.rs @@ -61,7 +61,7 @@ impl> InitStateCommandOp { )?; // SAFETY: it's safe to commit static files, since in the event of a crash, they - // will be unwinded according to database checkpoints. + // will be unwound according to database checkpoints. // // Necessary to commit, so the BEDROCK_HEADER is accessible to provider_rw and // init_state_dump diff --git a/crates/optimism/evm/src/execute.rs b/crates/optimism/evm/src/execute.rs index 9647fd25e..5a080fa1c 100644 --- a/crates/optimism/evm/src/execute.rs +++ b/crates/optimism/evm/src/execute.rs @@ -447,7 +447,7 @@ mod tests { #[test] fn op_deposit_fields_post_canyon() { - // ensure_create2_deployer will fail if timestamp is set to less then 2 + // ensure_create2_deployer will fail if timestamp is set to less than 2 let header = Header { timestamp: 2, number: 1, diff --git a/crates/optimism/node/tests/e2e/p2p.rs b/crates/optimism/node/tests/e2e/p2p.rs index 2bdc2eab1..e56b09418 100644 --- a/crates/optimism/node/tests/e2e/p2p.rs +++ b/crates/optimism/node/tests/e2e/p2p.rs @@ -47,7 +47,7 @@ async fn can_sync() -> eyre::Result<()> { .await?; second_node.engine_api.canonical_stream.next().await.unwrap(); - // Trigger backfil sync until block 80 + // Trigger backfill sync until block 80 third_node .engine_api .update_forkchoice(canonical_chain[tip_index - 10], canonical_chain[tip_index - 10]) diff --git a/crates/payload/primitives/src/payload.rs b/crates/payload/primitives/src/payload.rs index 5f4eec46e..10a60cb10 100644 --- a/crates/payload/primitives/src/payload.rs +++ b/crates/payload/primitives/src/payload.rs @@ -4,7 +4,7 @@ use alloy_eips::eip4895::Withdrawal; use alloy_primitives::B256; use alloy_rpc_types_engine::ExecutionPayload; -/// Either an [`ExecutionPayload`] or a types that implements the [`PayloadAttributes`] trait. +/// Either an [`ExecutionPayload`] or a type that implements the [`PayloadAttributes`] trait. /// /// This is a helper type to unify pre-validation of version specific fields of the engine API. #[derive(Debug)] diff --git a/crates/primitives-traits/src/log.rs b/crates/primitives-traits/src/log.rs index 0b445aeeb..02426756a 100644 --- a/crates/primitives-traits/src/log.rs +++ b/crates/primitives-traits/src/log.rs @@ -26,7 +26,7 @@ mod tests { struct Log { /// Contract that emitted this log. address: Address, - /// Topics of the log. The number of logs depend on what `LOG` opcode is used. + /// Topics of the log. The number of logs depends on what `LOG` opcode is used. topics: Vec, /// Arbitrary length data. data: Bytes,