@@ -4,7 +4,7 @@ use crate::OpConsensusError;
44use alloy_consensus:: BlockHeader ;
55use alloy_primitives:: B256 ;
66use alloy_trie:: EMPTY_ROOT_HASH ;
7- use reth_optimism_primitives:: ADDRESS_L2_TO_L1_MESSAGE_PASSER ;
7+ use reth_optimism_primitives:: L2_TO_L1_MESSAGE_PASSER_ADDRESS ;
88use reth_storage_api:: { errors:: ProviderResult , StorageRootProvider } ;
99use reth_trie_common:: HashedStorage ;
1010use revm:: database:: BundleState ;
@@ -32,7 +32,7 @@ pub fn withdrawals_root<DB: StorageRootProvider>(
3232 withdrawals_root_prehashed (
3333 state_updates
3434 . state ( )
35- . get ( & ADDRESS_L2_TO_L1_MESSAGE_PASSER )
35+ . get ( & L2_TO_L1_MESSAGE_PASSER_ADDRESS )
3636 . map ( |acc| {
3737 HashedStorage :: from_plain_storage (
3838 acc. status ,
@@ -52,7 +52,7 @@ pub fn withdrawals_root_prehashed<DB: StorageRootProvider>(
5252 hashed_storage_updates : HashedStorage ,
5353 state : DB ,
5454) -> ProviderResult < B256 > {
55- state. storage_root ( ADDRESS_L2_TO_L1_MESSAGE_PASSER , hashed_storage_updates)
55+ state. storage_root ( L2_TO_L1_MESSAGE_PASSER_ADDRESS , hashed_storage_updates)
5656}
5757
5858/// Verifies block header field `withdrawals_root` against storage root of
@@ -146,7 +146,7 @@ mod test {
146146
147147 #[ test]
148148 fn l2tol1_message_passer_no_withdrawals ( ) {
149- let hashed_address = keccak256 ( ADDRESS_L2_TO_L1_MESSAGE_PASSER ) ;
149+ let hashed_address = keccak256 ( L2_TO_L1_MESSAGE_PASSER_ADDRESS ) ;
150150
151151 // create account storage
152152 let init_storage = HashedStorage :: from_iter (
0 commit comments