Skip to content

Commit 3590b52

Browse files
committed
chore; bump revm to 14.0.3
1 parent ed9940d commit 3590b52

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Cargo.toml

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trevm"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
rust-version = "1.79.0"
55
edition = "2021"
66
authors = ["init4"]
@@ -27,20 +27,25 @@ option-if-let-else = "warn"
2727
redundant-clone = "warn"
2828

2929
[dependencies]
30-
alloy-primitives = "0.8"
31-
alloy-sol-types = "0.8"
30+
alloy-primitives = "=0.8.5"
31+
alloy-sol-types = "=0.8.5"
3232

33-
alloy = { version = "=0.3.6", features = ["rpc-types-mev"] }
33+
alloy = { version = "=0.4.2", features = ["rpc-types-mev"] }
3434

35-
revm = { version = "14.0.0", default-features = false, features = ["std"] }
35+
revm = { version = "14.0.3", default-features = false, features = ["std"] }
3636

37-
zenith-types = "0.8"
37+
zenith-types = "0.9"
3838

3939
thiserror = "1.0"
4040
alloy-rlp = "0.3"
4141

4242
[dev-dependencies]
43-
revm = { version = "14.0.0", features = ["test-utils", "serde-json", "std", "alloydb"] }
43+
revm = { version = "14.0.3", features = [
44+
"test-utils",
45+
"serde-json",
46+
"std",
47+
"alloydb",
48+
] }
4449
tokio = { version = "1.39", features = ["macros", "rt-multi-thread"] }
4550

4651
alloy-rlp = { version = "0.3", default-features = false }
@@ -56,7 +61,7 @@ default = [
5661
"revm/c-kzg",
5762
"revm/blst",
5863
"revm/portable",
59-
"revm/secp256k1"
64+
"revm/secp256k1",
6065
]
6166

6267
test-utils = ["revm/test-utils", "revm/std", "revm/serde-json", "revm/alloydb"]
@@ -93,4 +98,3 @@ full_env_cfg = [
9398
"optional_no_base_fee",
9499
"optional_beneficiary_reward",
95100
]
96-

examples/fork_ref_transact.rs examples/fork_ref_transact.rs.bak

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
//! This example demonstrates how to query storage slots of a contract, using AlloyDB.
1+
//! This example demonstrates how to query storage slots of a contract, using
2+
//! [`AlloyDB`].
3+
4+
//! This example is currently disabled while waiting for revm @ 14.0.4
25

36
use alloy::{eips::BlockId, providers::ProviderBuilder};
47
use alloy_primitives::{address, Address, TxKind, U256};

src/journal/index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl From<BundleStateIndex<'_>> for BundleState {
191191
// revm/src/db/states/bundle_state.rs
192192
fn from(value: BundleStateIndex<'_>) -> Self {
193193
let mut state_size = 0;
194-
let state: HashMap<_, _> = value
194+
let state: HashMap<_, _, _> = value
195195
.state
196196
.into_iter()
197197
.map(|(address, info)| {

src/system/eip4895.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::{EvmExtUnchecked, EvmNeedsTx};
22
use alloy::eips::eip4895::Withdrawal;
3-
use alloy_primitives::U256;
3+
use alloy_primitives::{map::HashMap, U256};
44
use revm::{primitives::EVMError, Database, DatabaseCommit};
5-
use std::collections::HashMap;
65

76
impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
87
/// Apply the withdrawals to the EVM state.
@@ -15,7 +14,7 @@ impl<'a, Ext, Db: Database + DatabaseCommit> EvmNeedsTx<'a, Ext, Db> {
1514
{
1615
// We need to apply the withdrawals by incrementing the balances of the
1716
// respective accounts, then committing the changes to the database.
18-
let mut changes = HashMap::new();
17+
let mut changes = HashMap::default();
1918

2019
let increments = withdrawals
2120
.into_iter()

0 commit comments

Comments
 (0)