pub fn convert_payload_v2_to_payload_input_v2(
    value: ExecutionPayloadV2,
    is_shanghai_active: bool,
) -> ExecutionPayloadInputV2
Expand description

Converts ExecutionPayloadV2 to ExecutionPayloadInputV2.

An ExecutionPayloadInputV2 should have a Some withdrawals field if shanghai is active, otherwise the withdrawals field should be None, so the is_shanghai_active argument is provided which will either:

  • include the withdrawals field as Some if true
  • set the withdrawals field to None if false