Skip to content

Commit b4b9eb6

Browse files
committed
chore: fix trevm aliases to use noop by default
1 parent 15aff7a commit b4b9eb6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trevm"
3-
version = "0.20.6"
3+
version = "0.20.7"
44
rust-version = "1.83.0"
55
edition = "2021"
66
authors = ["init4"]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
//! # use revm::{database::in_memory_db::InMemoryDB, inspector::NoOpInspector};
119119
//! # use trevm::{TrevmBuilder, EvmErrored, Cfg, BlockDriver};
120120
//! # use alloy::primitives::B256;
121-
//! # fn t<C: Cfg, D: BlockDriver<NoOpInspector>>(cfg: &C, mut driver: D)
121+
//! # fn t<C: Cfg, D: BlockDriver<InMemoryDB, NoOpInspector>>(cfg: &C, mut driver: D)
122122
//! # -> Result<(), Box<dyn std::error::Error>> {
123123
//! let trevm = TrevmBuilder::new()
124124
//! .with_db(InMemoryDB::default())

src/states.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{driver::BundleDriver, BlockDriver, ChainDriver, Trevm};
2-
use revm::{context::result::EVMError, Database};
2+
use revm::{context::result::EVMError, inspector::NoOpInspector, Database};
33
use sealed::*;
44

55
/// A [`Trevm`] that requires a [`Cfg`].
@@ -8,7 +8,7 @@ use sealed::*;
88
/// - [`EvmNeedsCfg::fill_cfg`]
99
///
1010
/// [`Cfg`]: crate::Cfg
11-
pub type EvmNeedsCfg<Db, Insp> = Trevm<Db, Insp, NeedsCfg>;
11+
pub type EvmNeedsCfg<Db, Insp = NoOpInspector> = Trevm<Db, Insp, NeedsCfg>;
1212

1313
/// A [`Trevm`] that requires a [`Block`] and contains no
1414
/// outputs. This EVM has not yet executed any transactions or state changes.
@@ -19,7 +19,7 @@ pub type EvmNeedsCfg<Db, Insp> = Trevm<Db, Insp, NeedsCfg>;
1919
/// - [`EvmNeedsBlock::drive_chain`]
2020
///
2121
/// [`Block`]: crate::Block
22-
pub type EvmNeedsBlock<Db, Insp> = Trevm<Db, Insp, NeedsBlock>;
22+
pub type EvmNeedsBlock<Db, Insp = NoOpInspector> = Trevm<Db, Insp, NeedsBlock>;
2323

2424
/// A [`Trevm`] that requires a [`Tx`].
2525
///
@@ -29,21 +29,21 @@ pub type EvmNeedsBlock<Db, Insp> = Trevm<Db, Insp, NeedsBlock>;
2929
/// - [`EvmNeedsTx::finish`]
3030
///
3131
/// [`Tx`]: crate::Tx
32-
pub type EvmNeedsTx<Db, Insp> = Trevm<Db, Insp, NeedsTx>;
32+
pub type EvmNeedsTx<Db, Insp = NoOpInspector> = Trevm<Db, Insp, NeedsTx>;
3333

3434
/// A [`Trevm`] that is ready to execute a transaction.
3535
///
3636
/// The transaction may be executed with [`EvmReady::run`] or cleared
3737
/// with [`EvmReady::clear_tx`]
38-
pub type EvmReady<Db, Insp> = Trevm<Db, Insp, Ready>;
38+
pub type EvmReady<Db, Insp = NoOpInspector> = Trevm<Db, Insp, Ready>;
3939

4040
/// A [`Trevm`] that run a transaction, and contains the resulting execution
4141
/// details and state.
4242
///
4343
/// Expected continuations include:
4444
/// - [`EvmTransacted::reject`]
4545
/// - [`EvmTransacted::accept`]
46-
pub type EvmTransacted<Db, Insp> = Trevm<Db, Insp, TransactedState>;
46+
pub type EvmTransacted<Db, Insp = NoOpInspector> = Trevm<Db, Insp, TransactedState>;
4747

4848
/// A [`Trevm`] that encountered an error during transaction execution.
4949
///

0 commit comments

Comments
 (0)