diff --git a/portalnetwork/history/history_network.go b/portalnetwork/history/history_network.go index dc9360e2b2f7..e102902299e8 100644 --- a/portalnetwork/history/history_network.go +++ b/portalnetwork/history/history_network.go @@ -303,7 +303,7 @@ func validateBlockBody(body *types.Body, header *types.Header) error { // EncodeBlockBody encode types.Body to ssz bytes func EncodeBlockBody(body *types.Body) ([]byte, error) { - if body.Withdrawals != nil && len(body.Withdrawals) > 0 { + if len(body.Withdrawals) > 0 { blockShanghai, err := toPortalBlockBodyShanghai(body) if err != nil { return nil, err