Skip to content
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
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
Because this is workspace with multi libraries, tags will be simplified, and with this document you can match version of project with git tag.

# v87
date: 23.09.2025

Small change release.

* `revm-context-interface`: 10.1.0 -> 10.2.0 (✓ API compatible changes)
* `revm-context`: 9.0.2 -> 9.1.0 (✓ API compatible changes)
* `op-revm`: 10.0.0 -> 10.1.0 (✓ API compatible changes)
* `revm-ee-tests`: 0.1.0
* `revm-interpreter`: 25.0.2 -> 25.0.3
* `revm-handler`: 10.0.0 -> 10.0.1
* `revm-inspector`: 10.0.0 -> 10.0.1
* `revm`: 29.0.0 -> 29.0.1
* `revm-statetest-types`: 9.0.2 -> 9.0.3
* `revme`: 7.2.2 -> 7.2.3


# v86
date: 24.08.2025

Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ default-members = ["crates/revm"]

[workspace.dependencies]
# revm
revm = { path = "crates/revm", version = "29.0.0", default-features = false }
revm = { path = "crates/revm", version = "29.0.1", default-features = false }
primitives = { path = "crates/primitives", package = "revm-primitives", version = "20.2.1", default-features = false }
bytecode = { path = "crates/bytecode", package = "revm-bytecode", version = "6.2.2", default-features = false }
database = { path = "crates/database", package = "revm-database", version = "7.0.5", default-features = false }
database-interface = { path = "crates/database/interface", package = "revm-database-interface", version = "7.0.5", default-features = false }
state = { path = "crates/state", package = "revm-state", version = "7.0.5", default-features = false }
interpreter = { path = "crates/interpreter", package = "revm-interpreter", version = "25.0.2", default-features = false }
inspector = { path = "crates/inspector", package = "revm-inspector", version = "10.0.0", default-features = false }
interpreter = { path = "crates/interpreter", package = "revm-interpreter", version = "25.0.3", default-features = false }
inspector = { path = "crates/inspector", package = "revm-inspector", version = "10.0.1", default-features = false }
precompile = { path = "crates/precompile", package = "revm-precompile", version = "27.0.0", default-features = false }
statetest-types = { path = "crates/statetest-types", package = "revm-statetest-types", version = "9.0.2", default-features = false }
context = { path = "crates/context", package = "revm-context", version = "9.0.2", default-features = false }
context-interface = { path = "crates/context/interface", package = "revm-context-interface", version = "10.1.0", default-features = false }
handler = { path = "crates/handler", package = "revm-handler", version = "10.0.0", default-features = false }
op-revm = { path = "crates/op-revm", package = "op-revm", version = "10.0.0", default-features = false }
statetest-types = { path = "crates/statetest-types", package = "revm-statetest-types", version = "9.0.3", default-features = false }
context = { path = "crates/context", package = "revm-context", version = "9.1.0", default-features = false }
context-interface = { path = "crates/context/interface", package = "revm-context-interface", version = "10.2.0", default-features = false }
handler = { path = "crates/handler", package = "revm-handler", version = "10.0.1", default-features = false }
op-revm = { path = "crates/op-revm", package = "op-revm", version = "10.1.0", default-features = false }
ee-tests = { path = "crates/ee-tests", package = "revm-ee-tests", version = "0.1.0", default-features = false }

# alloy
Expand Down
6 changes: 6 additions & 0 deletions bins/revme/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [7.2.3](https://github.com/bluealloy/revm/compare/revme-v7.2.2...revme-v7.2.3) - 2025-09-23

### Other

- updated the following local packages: revm-context-interface, revm-context, revm-inspector, revm, revm-statetest-types

## [7.1.0](https://github.com/bluealloy/revm/compare/revme-v7.0.4...revme-v7.1.0) - 2025-07-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion bins/revme/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revme"
description = "Rust Ethereum Virtual Machine Executable"
version = "7.2.2"
version = "7.2.3"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/context/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [9.1.0](https://github.com/bluealloy/revm/compare/revm-context-v9.0.2...revm-context-v9.1.0) - 2025-09-23

### Added

- *(op-revm)* Add an option to disable "fee-charge" on `op-revm` ([#2980](https://github.com/bluealloy/revm/pull/2980))

## [9.0.2](https://github.com/bluealloy/revm/compare/revm-context-v9.0.1...revm-context-v9.0.2) - 2025-08-23

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion crates/context/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revm-context"
description = "Revm context crates"
version = "9.0.2"
version = "9.1.0"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down Expand Up @@ -67,6 +67,7 @@ dev = [
"optional_eip3607",
"optional_no_base_fee",
"optional_priority_fee_check",
"optional_fee_charge",
]
memory_limit = []
optional_balance_check = []
Expand All @@ -75,5 +76,6 @@ optional_eip3541 = []
optional_eip3607 = []
optional_no_base_fee = []
optional_priority_fee_check = []
optional_fee_charge = []
enable_eip7702 = []
enable_eip7623 = []
6 changes: 6 additions & 0 deletions crates/context/interface/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.2.0](https://github.com/bluealloy/revm/compare/revm-context-interface-v10.1.0...revm-context-interface-v10.2.0) - 2025-09-23

### Added

- *(op-revm)* Add an option to disable "fee-charge" on `op-revm` ([#2980](https://github.com/bluealloy/revm/pull/2980))

## [10.1.0](https://github.com/bluealloy/revm/compare/revm-context-interface-v10.0.1...revm-context-interface-v10.1.0) - 2025-08-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/context/interface/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revm-context-interface"
description = "Revm context interface crates"
version = "10.1.0"
version = "10.2.0"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions crates/context/interface/src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ pub trait Cfg {
/// Returns whether the priority fee check is disabled.
fn is_priority_fee_check_disabled(&self) -> bool;

/// Returns whether the fee charge is disabled.
fn is_fee_charge_disabled(&self) -> bool;

/// Returns whether the EIP-7702 is enabled.
fn is_eip7702_enabled(&self) -> bool;

Expand Down
29 changes: 28 additions & 1 deletion crates/context/src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ pub struct CfgEnv<SPEC = SpecId> {
/// By default, it is set to `false`.
#[cfg(feature = "optional_priority_fee_check")]
pub disable_priority_fee_check: bool,
/// Disables fee charging for transactions.
/// This is useful when executing `eth_call` for example, on OP-chains where setting the base fee
/// to 0 isn't sufficient.
/// By default, it is set to `false`.
#[cfg(feature = "optional_fee_charge")]
pub disable_fee_charge: bool,
/// Enables EIP-7702, regardless of the current spec.
///
/// By default, it is set to `false`.
Expand Down Expand Up @@ -147,7 +153,7 @@ impl<SPEC> CfgEnv<SPEC> {
pub fn new_with_spec(spec: SPEC) -> Self {
Self {
chain_id: 1,
tx_chain_id_check: false,
tx_chain_id_check: true,
limit_contract_code_size: None,
limit_contract_initcode_size: None,
spec,
Expand All @@ -169,6 +175,8 @@ impl<SPEC> CfgEnv<SPEC> {
disable_base_fee: false,
#[cfg(feature = "optional_priority_fee_check")]
disable_priority_fee_check: false,
#[cfg(feature = "optional_fee_charge")]
disable_fee_charge: false,
#[cfg(feature = "enable_eip7702")]
enable_eip7702: false,
#[cfg(feature = "enable_eip7623")]
Expand Down Expand Up @@ -220,6 +228,8 @@ impl<SPEC> CfgEnv<SPEC> {
disable_base_fee: self.disable_base_fee,
#[cfg(feature = "optional_priority_fee_check")]
disable_priority_fee_check: self.disable_priority_fee_check,
#[cfg(feature = "optional_fee_charge")]
disable_fee_charge: self.disable_fee_charge,
#[cfg(feature = "enable_eip7702")]
enable_eip7702: self.enable_eip7702,
#[cfg(feature = "enable_eip7623")]
Expand Down Expand Up @@ -250,6 +260,13 @@ impl<SPEC> CfgEnv<SPEC> {
self
}

/// Sets the disable fee charge flag.
#[cfg(feature = "optional_fee_charge")]
pub fn with_disable_fee_charge(mut self, disable: bool) -> Self {
self.disable_fee_charge = disable;
self
}

/// Enables EIP-7702.
#[cfg(feature = "enable_eip7702")]
pub fn enable_eip_7702(mut self) -> CfgEnv<SPEC> {
Expand Down Expand Up @@ -377,6 +394,16 @@ impl<SPEC: Into<SpecId> + Copy> Cfg for CfgEnv<SPEC> {
}
}

fn is_fee_charge_disabled(&self) -> bool {
cfg_if::cfg_if! {
if #[cfg(feature = "optional_fee_charge")] {
self.disable_fee_charge
} else {
false
}
}
}

fn is_eip7702_enabled(&self) -> bool {
cfg_if::cfg_if! {
if #[cfg(feature = "enable_eip7702")] {
Expand Down
6 changes: 6 additions & 0 deletions crates/handler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.0.1](https://github.com/bluealloy/revm/compare/revm-handler-v10.0.0...revm-handler-v10.0.1) - 2025-09-23

### Other

- updated the following local packages: revm-context-interface, revm-context, revm-interpreter

## [10.0.0](https://github.com/bluealloy/revm/compare/revm-handler-v9.0.1...revm-handler-v10.0.0) - 2025-08-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/handler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revm-handler"
description = "Revm handler crates"
version = "10.0.0"
version = "10.0.1"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/inspector/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.0.1](https://github.com/bluealloy/revm/compare/revm-inspector-v10.0.0...revm-inspector-v10.0.1) - 2025-09-23

### Other

- updated the following local packages: revm-context, revm-interpreter, revm-handler

## [10.0.0](https://github.com/bluealloy/revm/compare/revm-inspector-v9.1.0...revm-inspector-v10.0.0) - 2025-08-23

### Other
Expand Down
2 changes: 1 addition & 1 deletion crates/inspector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revm-inspector"
description = "Revm inspector interface"
version = "10.0.0"
version = "10.0.1"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/interpreter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [25.0.3](https://github.com/bluealloy/revm/compare/revm-interpreter-v25.0.2...revm-interpreter-v25.0.3) - 2025-09-23

### Other

- updated the following local packages: revm-context-interface

## [24.0.0](https://github.com/bluealloy/revm/compare/revm-interpreter-v23.0.2...revm-interpreter-v24.0.0) - 2025-07-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/interpreter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revm-interpreter"
description = "Revm Interpreter that executes bytecode."
version = "25.0.2"
version = "25.0.3"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions crates/op-revm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.1.0](https://github.com/bluealloy/revm/compare/op-revm-v10.0.0...op-revm-v10.1.0) - 2025-09-23

### Added

- *(op-revm)* Add an option to disable "fee-charge" on `op-revm` ([#2980](https://github.com/bluealloy/revm/pull/2980))

## [10.0.0](https://github.com/bluealloy/revm/compare/op-revm-v9.0.1...op-revm-v10.0.0) - 2025-08-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/op-revm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "op-revm"
description = "Optimism variant of Revm"
version = "10.0.0"
version = "10.1.0"
authors.workspace = true
edition.workspace = true
keywords.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/op-revm/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ where
let mut additional_cost = U256::ZERO;

// The L1-cost fee is only computed for Optimism non-deposit transactions.
if !is_deposit {
if !is_deposit && !ctx.cfg().is_fee_charge_disabled() {
// L1 block info is stored in the context for later use.
// and it will be reloaded from the database if it is not for the current block.
if ctx.chain().l2_block != block_number {
Expand Down
Loading
Loading