From 4d3d51c266773a7e0a6959cb296e0a6c6db8946f Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 12 Dec 2024 17:04:02 +0100 Subject: [PATCH] fix comments --- spec/electra/pendingpartialwithdrawal_ssz.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/electra/pendingpartialwithdrawal_ssz.go b/spec/electra/pendingpartialwithdrawal_ssz.go index 74c1a0a6..874d3c66 100644 --- a/spec/electra/pendingpartialwithdrawal_ssz.go +++ b/spec/electra/pendingpartialwithdrawal_ssz.go @@ -17,7 +17,7 @@ func (p *PendingPartialWithdrawal) MarshalSSZ() ([]byte, error) { func (p *PendingPartialWithdrawal) MarshalSSZTo(buf []byte) (dst []byte, err error) { dst = buf - // Field (0) 'Index' + // Field (0) 'ValidatorIndex' dst = ssz.MarshalUint64(dst, uint64(p.ValidatorIndex)) // Field (1) 'Amount' @@ -37,7 +37,7 @@ func (p *PendingPartialWithdrawal) UnmarshalSSZ(buf []byte) error { return ssz.ErrSize } - // Field (0) 'Index' + // Field (0) 'ValidatorIndex' p.ValidatorIndex = phase0.ValidatorIndex(ssz.UnmarshallUint64(buf[0:8])) // Field (1) 'Amount' @@ -64,7 +64,7 @@ func (p *PendingPartialWithdrawal) HashTreeRoot() ([32]byte, error) { func (p *PendingPartialWithdrawal) HashTreeRootWith(hh ssz.HashWalker) (err error) { indx := hh.Index() - // Field (0) 'Index' + // Field (0) 'ValidatorIndex' hh.PutUint64(uint64(p.ValidatorIndex)) // Field (1) 'Amount'