From d5b20929968089125cd4a7a3cf28bf6d85e9dae9 Mon Sep 17 00:00:00 2001 From: Rodi-Can Bozman Date: Thu, 17 Jul 2025 14:04:56 +0200 Subject: [PATCH] Etherlink/Revm: rely on revm's KECCAKEMPTY not alloy's --- etherlink/kernel_latest/revm/src/database.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etherlink/kernel_latest/revm/src/database.rs b/etherlink/kernel_latest/revm/src/database.rs index 5011a145a5ae..07e4a69fb96e 100644 --- a/etherlink/kernel_latest/revm/src/database.rs +++ b/etherlink/kernel_latest/revm/src/database.rs @@ -15,10 +15,8 @@ use crate::{ }, Error, }; - -use alloy_primitives::KECCAK256_EMPTY; use revm::{ - primitives::{Address, HashMap, StorageKey, StorageValue, B256, U256}, + primitives::{Address, HashMap, StorageKey, StorageValue, B256, KECCAK_EMPTY, U256}, state::{Account, AccountInfo, Bytecode, EvmStorage, EvmStorageSlot}, Database, DatabaseCommit, }; @@ -267,7 +265,7 @@ impl Database for EtherlinkVMDB<'_, Host> { // We must return empty code here otherwise the simulation will fail because // of EIP-3607. return Ok(Some(AccountInfo { - code_hash: KECCAK256_EMPTY, + code_hash: KECCAK_EMPTY, code: None, ..account_info })); -- GitLab