Skip to content

Commit

Permalink
Update packages/types/src/utils/typeguards.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Cayman <[email protected]>
  • Loading branch information
ensi321 and wemeetagain authored Aug 2, 2024
1 parent 58ae678 commit 3cf5b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/types/src/utils/typeguards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export function isSignedBlockContents<F extends ForkBlobs>(
return (data as SignedBlockContents<F>).kzgProofs !== undefined;
}

export function isElectraAttestation<F extends ForkName.electra>(
export function isElectraAttestation(
attestation: Attestation
): attestation is Attestation<F> {
): attestation is Attestation<ForkPostElectra> {
return (attestation as Attestation<F>).committeeBits !== undefined;
}

0 comments on commit 3cf5b52

Please sign in to comment.