diff --git a/testing/util/random/epbs.go b/testing/util/random/epbs.go index 5a72fcc5dbc8..595165286556 100644 --- a/testing/util/random/epbs.go +++ b/testing/util/random/epbs.go @@ -47,13 +47,13 @@ func BeaconBlockBody(t *testing.T) *ethpb.BeaconBlockBodyEpbs { {Header_1: SignedBeaconBlockHeader(t), Header_2: SignedBeaconBlockHeader(t)}, }, - AttesterSlashings: []*ethpb.AttesterSlashing{ + AttesterSlashings: []*ethpb.AttesterSlashingElectra{ { Attestation_1: IndexedAttestation(t), Attestation_2: IndexedAttestation(t), }, }, - Attestations: []*ethpb.Attestation{Attestation(t), Attestation(t), Attestation(t)}, + Attestations: []*ethpb.AttestationElectra{Attestation(t), Attestation(t), Attestation(t)}, Deposits: []*ethpb.Deposit{Deposit(t), Deposit(t), Deposit(t)}, VoluntaryExits: []*ethpb.SignedVoluntaryExit{SignedVoluntaryExit(t), SignedVoluntaryExit(t)}, SyncAggregate: ðpb.SyncAggregate{ @@ -83,8 +83,8 @@ func SignedBeaconBlockHeader(t *testing.T) *ethpb.SignedBeaconBlockHeader { } // IndexedAttestation creates a random IndexedAttestation for testing purposes. -func IndexedAttestation(t *testing.T) *ethpb.IndexedAttestation { - return ðpb.IndexedAttestation{ +func IndexedAttestation(t *testing.T) *ethpb.IndexedAttestationElectra { + return ðpb.IndexedAttestationElectra{ AttestingIndices: []uint64{randomUint64(t), randomUint64(t), randomUint64(t)}, Data: AttestationData(t), Signature: randomBytes(96, t), @@ -92,8 +92,8 @@ func IndexedAttestation(t *testing.T) *ethpb.IndexedAttestation { } // Attestation creates a random Attestation for testing purposes. -func Attestation(t *testing.T) *ethpb.Attestation { - return ðpb.Attestation{ +func Attestation(t *testing.T) *ethpb.AttestationElectra { + return ðpb.AttestationElectra{ AggregationBits: bitfield.NewBitlist(123), Data: AttestationData(t), Signature: randomBytes(96, t),