Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(provider,rpc,sim): fix typos #469

Merged
merged 2 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading