@@ -3,7 +3,7 @@ use eth_types::{
33 l2_predeployed:: l1_gas_price_oracle,
44} ;
55use revm:: {
6- primitives:: { Account , AccountStatus , Address , Bytecode , Bytes , SpecId , StorageSlot , U256 } ,
6+ primitives:: { Account , AccountStatus , Address , Bytecode , Bytes , EvmStorageSlot , SpecId , U256 } ,
77 Database , DatabaseCommit ,
88} ;
99use std:: { collections:: HashMap , sync:: LazyLock } ;
@@ -13,7 +13,7 @@ static HARDFORK_HEIGHTS: LazyLock<HashMap<u64, HashMap<SpecId, u64>>> = LazyLock
1313 let mut heights = hardfork_heights ( ) ;
1414 heights. sort_by_key ( |a| a. 1 ) ;
1515 let heights = heights
16- . group_by ( |a, b| a. 1 == b. 1 )
16+ . chunk_by ( |a, b| a. 1 == b. 1 )
1717 . map ( |slice| {
1818 let chain_id = slice[ 0 ] . 1 ;
1919 (
@@ -106,21 +106,23 @@ impl HardforkConfig {
106106 storage : HashMap :: from ( [
107107 (
108108 U256 :: from_limbs ( l1_gas_price_oracle:: IS_CURIE_SLOT . 0 ) ,
109- StorageSlot :: new ( U256 :: from ( 1 ) ) ,
109+ EvmStorageSlot :: new ( U256 :: from ( 1 ) ) ,
110110 ) ,
111111 (
112112 U256 :: from_limbs ( l1_gas_price_oracle:: L1_BLOB_BASEFEE_SLOT . 0 ) ,
113- StorageSlot :: new ( U256 :: from ( 1 ) ) ,
113+ EvmStorageSlot :: new ( U256 :: from ( 1 ) ) ,
114114 ) ,
115115 (
116116 U256 :: from_limbs ( l1_gas_price_oracle:: COMMIT_SCALAR_SLOT . 0 ) ,
117- StorageSlot :: new ( U256 :: from_limbs (
117+ EvmStorageSlot :: new ( U256 :: from_limbs (
118118 l1_gas_price_oracle:: INITIAL_COMMIT_SCALAR . 0 ,
119119 ) ) ,
120120 ) ,
121121 (
122122 U256 :: from_limbs ( l1_gas_price_oracle:: BLOB_SCALAR_SLOT . 0 ) ,
123- StorageSlot :: new ( U256 :: from_limbs ( l1_gas_price_oracle:: INITIAL_BLOB_SCALAR . 0 ) ) ,
123+ EvmStorageSlot :: new ( U256 :: from_limbs (
124+ l1_gas_price_oracle:: INITIAL_BLOB_SCALAR . 0 ,
125+ ) ) ,
124126 ) ,
125127 ] ) ,
126128 status : AccountStatus :: Touched ,
0 commit comments