diff --git a/Cargo.lock b/Cargo.lock index 7a2f799f3f..a5aab0d41e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8421,6 +8421,7 @@ dependencies = [ "alloy-evm", "alloy-genesis", "alloy-primitives", + "alloy-rlp", "alloy-rpc-types-engine", "derive_more", "parking_lot", diff --git a/crates/ethereum/evm/Cargo.toml b/crates/ethereum/evm/Cargo.toml index fbbbeeed83..7de672d915 100644 --- a/crates/ethereum/evm/Cargo.toml +++ b/crates/ethereum/evm/Cargo.toml @@ -27,6 +27,7 @@ alloy-eips.workspace = true alloy-evm.workspace = true alloy-consensus.workspace = true alloy-rpc-types-engine.workspace = true +alloy-rlp.workspace = true # Misc parking_lot = { workspace = true, optional = true } diff --git a/crates/ethereum/evm/src/build.rs b/crates/ethereum/evm/src/build.rs index 8a5f609176..61dca9b3a8 100644 --- a/crates/ethereum/evm/src/build.rs +++ b/crates/ethereum/evm/src/build.rs @@ -110,7 +110,9 @@ where blob_gas_used, excess_blob_gas, requests_hash, - block_access_list_hash: None, + block_access_list_hash: block_access_list + .as_ref() + .map(|bal| alloy_primitives::keccak256(&alloy_rlp::encode(bal))), }; Ok(Block { @@ -119,7 +121,7 @@ where transactions, ommers: Default::default(), withdrawals, - block_access_list: None, + block_access_list: block_access_list.clone(), }, }) }