Skip to content

Commit

Permalink
chore: use proto Getter functions instead of fields (that are potenti…
Browse files Browse the repository at this point in the history
…ally nil)
  • Loading branch information
samlaf committed Oct 25, 2024
1 parent 3ee8d33 commit 2d24e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (v *Verifier) VerifyCert(ctx context.Context, cert *Certificate) error {
}

// 3 - verify security parameters
batchHeader := cert.Proof().BatchMetadata.BatchHeader
batchHeader := cert.Proof().GetBatchMetadata().GetBatchHeader()
err = v.verifySecurityParams(cert.ReadBlobHeader(), batchHeader.QuorumNumbers, batchHeader.QuorumSignedPercentages)
if err != nil {
return fmt.Errorf("failed to verify security parameters: %w", err)
Expand Down

0 comments on commit 2d24e16

Please sign in to comment.