Method receiver 'a' is not referenced in method's body, consider removing it
57 return nil
58}
59
60func (a *AttestationElectra) Version() int {61 return version.Electra
62}
63
Method receiver 'a' is not referenced in method's body, consider removing it
53 return
54}
55
56func (a *PendingAttestation) GetSignature() []byte {57 return nil
58}
59
Method receiver 'a' is not referenced in method's body, consider removing it
49 return
50}
51
52func (a *PendingAttestation) SetSignature(sig []byte) {53 return
54}
55
Method receiver 'a' is not referenced in method's body, consider removing it
45 a.Data = data
46}
47
48func (a *PendingAttestation) SetCommitteeBits(bits bitfield.Bitlist) {49 return
50}
51
Method receiver 'a' is not referenced in method's body, consider removing it
33 return version.Phase0
34}
35
36func (a *PendingAttestation) GetCommitteeBits() bitfield.Bitlist {37 return nil
38}
39
Method receiver 'a' is not referenced in method's body, consider removing it
29 a.Signature = sig
30}
31
32func (a *PendingAttestation) Version() int {33 return version.Phase0
34}
35
Method receiver 'a' is not referenced in method's body, consider removing it
21 a.Data = data
22}
23
24func (a *Attestation) SetCommitteeBits(bits bitfield.Bitlist) {25 return
26}
27
Method receiver 'a' is not referenced in method's body, consider removing it
9 return version.Phase0
10}
11
12func (a *Attestation) GetCommitteeBits() bitfield.Bitlist {13 return nil
14}
15
Method receiver 'a' is not referenced in method's body, consider removing it
5 "github.com/prysmaticlabs/prysm/v5/runtime/version"
6)
7
8func (a *Attestation) Version() int { 9 return version.Phase0
10}
11
Method receiver 'b' is not referenced in method's body, consider removing it
317 panic("implement me")
318}
319
320func (b *BeaconBlockBody) Version() int {321 panic("implement me")
322}
323
Method receiver 'b' is not referenced in method's body, consider removing it
313 panic("implement me")
314}
315
316func (b *BeaconBlockBody) Attestations() []interfaces.Attestation {317 panic("implement me")
318}
319
Method receiver 'b' is not referenced in method's body, consider removing it
309}
310
311// BlobKzgCommitments returns the blob kzg commitments in the block.
312func (b *BeaconBlockBody) BlobKzgCommitments() ([][]byte, error) {313 panic("implement me")
314}
315
Method receiver 'b' is not referenced in method's body, consider removing it
304 panic("implement me")
305}
306
307func (b *BeaconBlockBody) SetBLSToExecutionChanges([]*eth.SignedBLSToExecutionChange) error {308 panic("implement me")
309}
310
Method receiver 'b' is not referenced in method's body, consider removing it
300 panic("implement me")
301}
302
303func (b *BeaconBlockBody) SetExecution(interfaces.ExecutionData) error {304 panic("implement me")
305}
306
Method receiver 'b' is not referenced in method's body, consider removing it
296 panic("implement me")
297}
298
299func (b *BeaconBlockBody) SetSyncAggregate(*eth.SyncAggregate) error {300 panic("implement me")
301}
302
Method receiver 'b' is not referenced in method's body, consider removing it
292 panic("implement me")
293}
294
295func (b *BeaconBlockBody) SetVoluntaryExits([]*eth.SignedVoluntaryExit) {296 panic("implement me")
297}
298
Method receiver 'b' is not referenced in method's body, consider removing it
288 panic("implement me")
289}
290
291func (b *BeaconBlockBody) SetDeposits([]*eth.Deposit) {292 panic("implement me")
293}
294
Method receiver 'b' is not referenced in method's body, consider removing it
284 panic("implement me")
285}
286
287func (b *BeaconBlockBody) SetAttestations([]*eth.Attestation) {288 panic("implement me")
289}
290
Method receiver 'b' is not referenced in method's body, consider removing it
280 panic("implement me")
281}
282
283func (b *BeaconBlockBody) SetAttesterSlashings([]*eth.AttesterSlashing) {284 panic("implement me")
285}
286
Method receiver 'b' is not referenced in method's body, consider removing it
276 panic("implement me")
277}
278
279func (b *BeaconBlockBody) SetProposerSlashings([]*eth.ProposerSlashing) {280 panic("implement me")
281}
282
Method receiver 'b' is not referenced in method's body, consider removing it
272 panic("implement me")
273}
274
275func (b *BeaconBlockBody) SetGraffiti([]byte) {276 panic("implement me")
277}
278
Method receiver 'b' is not referenced in method's body, consider removing it
268 panic("implement me")
269}
270
271func (b *BeaconBlockBody) SetEth1Data(*eth.Eth1Data) {272 panic("implement me")
273}
274
Method receiver 'b' is not referenced in method's body, consider removing it
264 panic("implement me")
265}
266
267func (b *BeaconBlockBody) SetRandaoReveal([]byte) {268 panic("implement me")
269}
270
Method receiver 'b' is not referenced in method's body, consider removing it
260 panic("implement me")
261}
262
263func (b *BeaconBlock) SetStateRoot(root []byte) {264 panic("implement me")
265}
266
Description
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
Bad practice
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
Recommended
func (*Unix) Name() string {
return "unix"
}