@@ -255,6 +255,7 @@ impl CopyDataTypeIter {
255
255
5usize => Some ( CopyDataType :: RlcAcc ) ,
256
256
6usize => Some ( CopyDataType :: AccessListAddresses ) ,
257
257
7usize => Some ( CopyDataType :: AccessListStorageKeys ) ,
258
+ #[ cfg( feature = "dual_bytecode" ) ]
258
259
8usize => Some ( CopyDataType :: Bytecode1 ) ,
259
260
_ => None ,
260
261
}
@@ -324,6 +325,7 @@ impl From<CopyDataType> for usize {
324
325
CopyDataType :: RlcAcc => 5 ,
325
326
CopyDataType :: AccessListAddresses => 6 ,
326
327
CopyDataType :: AccessListStorageKeys => 7 ,
328
+ #[ cfg( feature = "dual_bytecode" ) ]
327
329
CopyDataType :: Bytecode1 => 8 ,
328
330
}
329
331
}
@@ -517,13 +519,27 @@ impl CopyEvent {
517
519
518
520
/// Whether the RLC of data must be computed.
519
521
pub fn has_rlc ( & self ) -> bool {
520
- matches ! (
521
- ( self . src_type, self . dst_type) ,
522
- ( CopyDataType :: RlcAcc , _)
523
- | ( _, CopyDataType :: RlcAcc )
524
- | ( _, CopyDataType :: Bytecode )
525
- | ( _, CopyDataType :: Bytecode1 )
526
- )
522
+ #[ cfg( feature = "dual_bytecode" ) ]
523
+ {
524
+ matches ! (
525
+ ( self . src_type, self . dst_type) ,
526
+ ( CopyDataType :: RlcAcc , _)
527
+ | ( _, CopyDataType :: RlcAcc )
528
+ | ( _, CopyDataType :: Bytecode )
529
+ | ( _, CopyDataType :: Bytecode1 )
530
+ )
531
+ }
532
+ #[ cfg( not( feature = "dual_bytecode" ) ) ]
533
+ {
534
+ matches ! (
535
+ ( self . src_type, self . dst_type) ,
536
+ ( CopyDataType :: RlcAcc , _)
537
+ | ( _, CopyDataType :: RlcAcc )
538
+ | ( _, CopyDataType :: Bytecode )
539
+ #[ cfg( feature = "dual_bytecode" ) ]
540
+ | ( _, CopyDataType :: Bytecode1 )
541
+ )
542
+ }
527
543
}
528
544
529
545
/// The RW counter of the first RW lookup performed by this copy event.
0 commit comments