Skip to content

Commit

Permalink
no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Feb 6, 2025
1 parent b4d543b commit 694ec3c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/inspector/src/eip3155.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct TracerEip3155<CTX, INTR> {
skip: bool,
include_memory: bool,
memory: Option<String>,
_phantom: std::marker::PhantomData<(CTX, INTR)>,
_phantom: core::marker::PhantomData<(CTX, INTR)>,
}

// # Output
Expand Down
1 change: 1 addition & 0 deletions crates/optimism/src/api/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use revm::{
state::EvmState,
Context, Database, JournaledState,
};
use std::vec::Vec;

pub trait OpBuilder: Sized {
type Context;
Expand Down
1 change: 1 addition & 0 deletions crates/optimism/src/api/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use revm::{
state::EvmState,
Context, DatabaseCommit, ExecuteCommitEvm, ExecuteEvm, InspectCommitEvm, InspectEvm,
};
use std::vec::Vec;

impl<BLOCK, TX, CFG, DB, JOURNAL, INSP> ExecuteEvm
for OpEvm<
Expand Down
5 changes: 3 additions & 2 deletions crates/optimism/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ use revm::{
state::{Account, EvmState},
Database,
};
use std::vec::Vec;

pub struct OpHandler<EVM, ERROR, FRAME> {
pub mainnet: MainnetHandler<EVM, ERROR, FRAME>,
pub _phantom: std::marker::PhantomData<(EVM, ERROR, FRAME)>,
pub _phantom: core::marker::PhantomData<(EVM, ERROR, FRAME)>,
}

impl<EVM, ERROR, FRAME> OpHandler<EVM, ERROR, FRAME> {
pub fn new() -> Self {
Self {
mainnet: MainnetHandler::default(),
_phantom: std::marker::PhantomData,
_phantom: core::marker::PhantomData,
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/erc20_gas/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ use std::cmp::Ordering;
use crate::{erc_address_storage, token_operation, TOKEN, TREASURY};

pub struct Erc20MainetHandler<CTX, ERROR> {
_phantom: std::marker::PhantomData<(CTX, ERROR)>,
_phantom: core::marker::PhantomData<(CTX, ERROR)>,
}

impl<CTX, ERROR> Erc20MainetHandler<CTX, ERROR> {
pub fn new() -> Self {
Self {
_phantom: std::marker::PhantomData,
_phantom: core::marker::PhantomData,
}
}
}
Expand Down

0 comments on commit 694ec3c

Please sign in to comment.