small datatypes cleanups (#6266)

This commit is contained in:
tersec 2024-05-06 08:21:37 +00:00 committed by GitHub
parent a6f68d3edc
commit c41fe698cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -985,4 +985,5 @@ func ofLen*[T, N](ListType: type List[T, N], n: int): ListType =
else:
raise newException(SszSizeMismatchError)
template debugComment*(s: string) = discard
template debugRaiseAssert*(s: string) = discard

View File

@ -589,7 +589,7 @@ type
Attestation* = object
aggregation_bits*: ElectraCommitteeValidatorsBits
data*: AttestationData
committee_bits*: BitArray[static(MAX_COMMITTEES_PER_SLOT.int)] # [New in Electra:EIP7549]
committee_bits*: BitArray[MAX_COMMITTEES_PER_SLOT.int] # [New in Electra:EIP7549]
signature*: ValidatorSig
TrustedAttestation* = object
@ -598,7 +598,7 @@ type
# Currently the code MUST verify the state transition as soon as the signature is verified
aggregation_bits*: ElectraCommitteeValidatorsBits
data*: AttestationData
committee_bits*: BitArray[static(MAX_COMMITTEES_PER_SLOT.int)] # [New in Electra:EIP7549]
committee_bits*: BitArray[MAX_COMMITTEES_PER_SLOT.int] # [New in Electra:EIP7549]
signature*: TrustedSig
SomeSignedBeaconBlock* =