prysmaticlabs / prysm

Documentation of an exported function should start with the function’s name GO-D5001
Documentation
Minor
3 occurrences in this check
comment on exported function CopyPendingPartialWithdrawals should be of the form "CopyPendingPartialWithdrawals ..."
1127	return newSummaries
1128}
1129
1130// CopyPartialWithdrawals copies the provided partial withdrawals.1131func CopyPendingPartialWithdrawals(pws []*PendingPartialWithdrawal) []*PendingPartialWithdrawal {
1132	if pws == nil {
1133		return nil
comment on exported function CopyAttestationsElectra should be of the form "CopyAttestationsElectra ..."
 304	return newAttestations
 305}
 306
 307// CopyAttestations copies the provided AttestationElectra array. 308func CopyAttestationsElectra(attestations []*AttestationElectra) []*AttestationElectra {
 309	if attestations == nil {
 310		return nil
comment on exported function HasETH1WithdrawalCredential should be of the form "HasETH1WithdrawalCredential ..."
487	return lastActivatedvalidatorIndex, nil
488}
489
490// hasETH1WithdrawalCredential returns whether the validator has an ETH1491// Withdrawal prefix. It assumes that the caller has a lock on the state
492func HasETH1WithdrawalCredential(val *ethpb.Validator) bool {
493	if val == nil {