Skip to content

Commit

Permalink
chore(provider,rpc,sim): fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDaisy committed Oct 27, 2023
1 parent 8592d35 commit d6e2363
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/provider/src/ethers/entry_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/src/eth/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
4 changes: 2 additions & 2 deletions crates/sim/tracer/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.
}

Expand Down

0 comments on commit d6e2363

Please sign in to comment.