Testutil refactor attestations (#10952)

* Add AttestationUtil receiver

* Modify usage to account for the receiver

* Add missing explanatory comments

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
Sammy Rosso
2022-06-29 18:42:33 +02:00
committed by GitHub
parent 44c39a0b40
commit 8ebbde7836
40 changed files with 320 additions and 262 deletions

View File

@@ -122,7 +122,7 @@ func generateMarshalledFullStateAndBlock() error {
var atts []*ethpb.Attestation
for i := slotOffset + 1; i < slotsPerEpoch+slotOffset; i++ {
attsForSlot, err := util.GenerateAttestations(beaconState, privs, attConfig.NumAttestations, i, false)
attsForSlot, err := util.NewAttestationUtil().GenerateAttestations(beaconState, privs, attConfig.NumAttestations, i, false)
if err != nil {
return err
}