@@ -325,6 +325,10 @@ mod tests {
325
325
balance : U256 :: ZERO ,
326
326
bytecode_hash : Some ( keccak256 ( BEACON_ROOTS_CODE . clone ( ) ) ) ,
327
327
nonce : 1 ,
328
+ #[ cfg( feature = "scroll" ) ]
329
+ account_extension : Some ( reth_scroll_primitives:: AccountExtension :: from_bytecode (
330
+ & BEACON_ROOTS_CODE ,
331
+ ) ) ,
328
332
} ;
329
333
330
334
db. insert_account (
@@ -344,6 +348,10 @@ mod tests {
344
348
nonce : 1 ,
345
349
balance : U256 :: ZERO ,
346
350
bytecode_hash : Some ( keccak256 ( WITHDRAWAL_REQUEST_PREDEPLOY_CODE . clone ( ) ) ) ,
351
+ #[ cfg( feature = "scroll" ) ]
352
+ account_extension : Some ( reth_scroll_primitives:: AccountExtension :: from_bytecode (
353
+ & WITHDRAWAL_REQUEST_PREDEPLOY_CODE ,
354
+ ) ) ,
347
355
} ;
348
356
349
357
db. insert_account (
@@ -707,6 +715,10 @@ mod tests {
707
715
balance : U256 :: ZERO ,
708
716
bytecode_hash : Some ( keccak256 ( HISTORY_STORAGE_CODE . clone ( ) ) ) ,
709
717
nonce : 1 ,
718
+ #[ cfg( feature = "scroll" ) ]
719
+ account_extension : Some ( reth_scroll_primitives:: AccountExtension :: from_bytecode (
720
+ & HISTORY_STORAGE_CODE ,
721
+ ) ) ,
710
722
} ;
711
723
712
724
db. insert_account (
@@ -1059,7 +1071,13 @@ mod tests {
1059
1071
1060
1072
db. insert_account (
1061
1073
sender_address,
1062
- Account { nonce : 1 , balance : U256 :: from ( ETH_TO_WEI ) , bytecode_hash : None } ,
1074
+ Account {
1075
+ nonce : 1 ,
1076
+ balance : U256 :: from ( ETH_TO_WEI ) ,
1077
+ bytecode_hash : None ,
1078
+ #[ cfg( feature = "scroll" ) ]
1079
+ account_extension : Some ( reth_scroll_primitives:: AccountExtension :: empty ( ) ) ,
1080
+ } ,
1063
1081
None ,
1064
1082
HashMap :: default ( ) ,
1065
1083
) ;
@@ -1141,7 +1159,13 @@ mod tests {
1141
1159
// Insert the sender account into the state with a nonce of 1 and a balance of 1 ETH in Wei
1142
1160
db. insert_account (
1143
1161
sender_address,
1144
- Account { nonce : 1 , balance : U256 :: from ( ETH_TO_WEI ) , bytecode_hash : None } ,
1162
+ Account {
1163
+ nonce : 1 ,
1164
+ balance : U256 :: from ( ETH_TO_WEI ) ,
1165
+ bytecode_hash : None ,
1166
+ #[ cfg( feature = "scroll" ) ]
1167
+ account_extension : Some ( reth_scroll_primitives:: AccountExtension :: empty ( ) ) ,
1168
+ } ,
1145
1169
None ,
1146
1170
HashMap :: default ( ) ,
1147
1171
) ;
0 commit comments