Skip to content

Commit

Permalink
Fix error message for protocol version conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Dec 1, 2023
1 parent 3cafd4c commit e8ebd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/zksync_core/src/sync_layer/gossip/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl FetchedBlock {

let protocol_version = block.justification.message.protocol_version;
let protocol_version =
u16::try_from(protocol_version.as_u32()).context("Protocol version overflow")?;
u16::try_from(protocol_version.as_u32()).context("Invalid protocol version")?;
let protocol_version = ProtocolVersionId::try_from(protocol_version)
.with_context(|| format!("Unsupported protocol version: {protocol_version}"))?;

Expand Down

0 comments on commit e8ebd7d

Please sign in to comment.