Skip to content

Commit

Permalink
Fix the bug in process attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed May 8, 2024
1 parent 5afcace commit 7c7bdeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function validateAttestation(
if (fork >= ForkSeq.electra) {
assert.equal(data.index, 0, `AttestationData.index must be zero: index=${data.index}`);
const attestationElectra = attestation as electra.Attestation;
const committeeBitsLength = attestationElectra.committeeBits.bitLen;
const committeeBitsLength = attestationElectra.committeeBits.getTrueBitIndexes().length;

if (committeeBitsLength > committeeCount) {
throw new Error(
Expand Down

0 comments on commit 7c7bdeb

Please sign in to comment.