From c90231c0ec8a17a0a26acaa349f72d6f8877c652 Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Mon, 16 Oct 2023 22:45:22 +0800 Subject: [PATCH] fix typos --- crates/provider/src/ethers/entry_point.rs | 2 +- crates/rpc/src/eth/api.rs | 2 +- crates/sim/tracer/src/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/provider/src/ethers/entry_point.rs b/crates/provider/src/ethers/entry_point.rs index 2efeb841f..23b89d196 100644 --- a/crates/provider/src/ethers/entry_point.rs +++ b/crates/provider/src/ethers/entry_point.rs @@ -74,7 +74,7 @@ where if let ContractError::Revert(revert_data) = &error { if let Ok(FailedOp { op_index, reason }) = FailedOp::decode(revert_data) { match &reason[..4] { - "AA95" => anyhow::bail!("Handle ops called with insufficent gas"), + "AA95" => anyhow::bail!("Handle ops called with insufficient gas"), _ => return Ok(HandleOpsOut::FailedOp(op_index.as_usize(), reason)), } } diff --git a/crates/rpc/src/eth/api.rs b/crates/rpc/src/eth/api.rs index ee9813e0f..ca5f2474d 100644 --- a/crates/rpc/src/eth/api.rs +++ b/crates/rpc/src/eth/api.rs @@ -507,7 +507,7 @@ mod tests { const UO_OP_TOPIC: &str = "user-op-event-topic"; #[test] - fn test_filter_receipt_logs_when_at_begining_of_list() { + fn test_filter_receipt_logs_when_at_beginning_of_list() { let reference_log = given_log(UO_OP_TOPIC, "moldy-hash"); let receipt = given_receipt(vec![ given_log("other-topic", "some-hash"), diff --git a/crates/sim/tracer/src/types.ts b/crates/sim/tracer/src/types.ts index bc51251db..fc41420d9 100644 --- a/crates/sim/tracer/src/types.ts +++ b/crates/sim/tracer/src/types.ts @@ -89,7 +89,7 @@ export interface LogCallFrame { export interface LogFrameResult { getGasUsed: () => number; // - returns amount of gas used throughout the frame as a Number getOutput: () => Bytes; // - returns the output as a buffer - getError: () => any; // - returns an error if one occured during execution and undefined` otherwise + getError: () => any; // - returns an error if one occurred during execution and undefined` otherwise } export interface LogOpCode { @@ -127,7 +127,7 @@ export interface LogStep { getCost: () => number; // returns the cost of the opcode as a Number getDepth: () => number; // returns the execution depth as a Number getRefund: () => number; // returns the amount to be refunded as a Number - getError: () => string | undefined; // returns information about the error if one occured, otherwise returns undefined + getError: () => string | undefined; // returns information about the error if one occurred, otherwise returns undefined // If error is non-empty, all other fields should be ignored. }