chore(docs): Fix docs (#14602)

This commit is contained in:
Emilia Hane
2025-02-20 10:20:18 +01:00
committed by GitHub
parent c5df8fbaaf
commit d075995205

View File

@ -11,7 +11,7 @@ pub fn ensure_well_formed_fields<T: BlockBody>(
) -> Result<(), PayloadError> { ) -> Result<(), PayloadError> {
if is_shanghai_active { if is_shanghai_active {
if block_body.withdrawals().is_none() { if block_body.withdrawals().is_none() {
// shanghai not active but withdrawals present // shanghai active but no withdrawals present
return Err(PayloadError::PostShanghaiBlockWithoutWithdrawals) return Err(PayloadError::PostShanghaiBlockWithoutWithdrawals)
} }
} else if block_body.withdrawals().is_some() { } else if block_body.withdrawals().is_some() {