Skip to content

Commit

Permalink
error on V3 configured before cancun
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Mar 4, 2024
1 parent 1f5fbd8 commit fbfc2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/payload/builder/src/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl From<OptimismBuiltPayload> for OptimismExecutionPayloadEnvelopeV3 {
if chain_spec.is_cancun_active_at_timestamp(attributes.timestamp()) {
attributes.parent_beacon_block_root().unwrap_or_else(FixedBytes::<32>::default)
} else {
FixedBytes::<32>::default()
panic!("V3 is only possible after cancun");
};
OptimismExecutionPayloadEnvelopeV3 {
execution_payload: block_to_payload_v3(block.clone()),
Expand Down

0 comments on commit fbfc2bf

Please sign in to comment.