mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user