diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3cb25136a..985ea7404a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,13 +38,15 @@ jobs: strategy: fail-fast: false matrix: - features: ["", "optimism,kzg-rs"] + features: ["", "kzg-rs"] steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: riscv32imac-unknown-none-elf - - run: cargo check --target riscv32imac-unknown-none-elf --no-default-features --features=${{ matrix.features }} + - run: | + cargo check --target riscv32imac-unknown-none-elf --no-default-features --features=${{ matrix.features }} + cargo check --target riscv32imac-unknown-none-elf --p revm-optimism --no-default-features --features=${{ matrix.features }} check: name: check ${{ matrix.features }} diff --git a/crates/optimism/src/fast_lz.rs b/crates/optimism/src/fast_lz.rs index 327eb96f7b..f931697cb1 100644 --- a/crates/optimism/src/fast_lz.rs +++ b/crates/optimism/src/fast_lz.rs @@ -166,8 +166,7 @@ mod tests { .with_default_ext_ctx() .modify_tx_env(|tx| { tx.caller = address!("1000000000000000000000000000000000000000"); - tx.transact_to = - TxKind::Call(address!("0000000000000000000000000000000000000000")); + tx.transact_to = TxKind::Call(address!("0000000000000000000000000000000000000000")); tx.data = FastLz::fastLzCall::new((input,)).abi_encode().into(); }) .build(); diff --git a/crates/revm/src/builder.rs b/crates/revm/src/builder.rs index 818738ddc1..f1c4b6a31d 100644 --- a/crates/revm/src/builder.rs +++ b/crates/revm/src/builder.rs @@ -289,10 +289,10 @@ impl<'a, BuilderStage, EvmWiringT: EvmWiring> EvmBuilder<'a, BuilderStage, EvmWi /// ```rust /// use revm::{EvmBuilder, EvmHandler, db::EmptyDB, primitives::{EthereumWiring, SpecId}}; /// use revm_interpreter::primitives::CancunSpec; - /// let builder = EvmBuilder::default(); + /// let builder = EvmBuilder::default().with_default_db().with_default_ext_ctx(); /// /// // get the desired handler - /// let mainnet = EvmHandler::<'_, EthereumWiring, (), EmptyDB>::mainnet_with_spec(SpecId::CANCUN); + /// let mainnet = EvmHandler::<'_, EthereumWiring>::mainnet_with_spec(SpecId::CANCUN); /// let builder = builder.with_handler(mainnet); /// /// // build the EVM