Update tests/core/pyspec/eth2spec/test/helpers/attestations.py

This commit is contained in:
Alex Stokes 2024-04-05 09:38:32 -06:00 committed by GitHub
parent 265788be58
commit 3d3ec8fbba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ def _aggregate_aggregation_bits_and_signatures(spec, state, slot, aggregate, att
def get_valid_attestation_at_slot(state, spec, slot_to_attest, participation_fn=None, beacon_block_root=None): def get_valid_attestation_at_slot(state, spec, slot_to_attest, participation_fn=None, beacon_block_root=None):
""" """
Return the aggregate attestation Return the aggregate attestation post EIP-7549.
Note: this EIP supports dense packing of on-chain aggregates so we can just return a single `Attestation`.
""" """
assert is_post_eip7549(spec) assert is_post_eip7549(spec)
attestations = list(get_valid_attestations_at_slot( attestations = list(get_valid_attestations_at_slot(