Skip to content

Commit

Permalink
add todo for supported protocol versions
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed Jan 23, 2025
1 parent 20577a1 commit c842429
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/core/src/node/inner/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ impl ForkClient {
block.l1_batch_number = Some(batch_number.0.into());

if let Some(protocol_version) = block_details.protocol_version {
// TODO: In reality, anvil-zksync only supports one protocol version as we rely on
// compiled contracts from `contracts` submodule.
if !SupportedProtocolVersions::is_supported(protocol_version) {
anyhow::bail!(
"Block #{block_number} from fork={url} is using unsupported protocol version `{protocol_version}`. \
Expand Down

0 comments on commit c842429

Please sign in to comment.