Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 319780d

Browse files
committedAug 22, 2024·
fix build when dual_bytecode not set
1 parent 39e9ec7 commit 319780d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎bus-mapping/src/circuit_input_builder/execution.rs

+3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ impl CopyDataTypeIter {
255255
5usize => Some(CopyDataType::RlcAcc),
256256
6usize => Some(CopyDataType::AccessListAddresses),
257257
7usize => Some(CopyDataType::AccessListStorageKeys),
258+
#[cfg(feature = "dual_bytecode")]
258259
8usize => Some(CopyDataType::Bytecode1),
259260
_ => None,
260261
}
@@ -324,6 +325,7 @@ impl From<CopyDataType> for usize {
324325
CopyDataType::RlcAcc => 5,
325326
CopyDataType::AccessListAddresses => 6,
326327
CopyDataType::AccessListStorageKeys => 7,
328+
#[cfg(feature = "dual_bytecode")]
327329
CopyDataType::Bytecode1 => 8,
328330
}
329331
}
@@ -522,6 +524,7 @@ impl CopyEvent {
522524
(CopyDataType::RlcAcc, _)
523525
| (_, CopyDataType::RlcAcc)
524526
| (_, CopyDataType::Bytecode)
527+
#[cfg(feature = "dual_bytecode")]
525528
| (_, CopyDataType::Bytecode1)
526529
)
527530
}

0 commit comments

Comments
 (0)
Please sign in to comment.