From 2d24e1696c95d3e0b748350ab8fb45f410cf4180 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Fri, 25 Oct 2024 12:53:17 +0100 Subject: [PATCH] chore: use proto Getter functions instead of fields (that are potentially nil) --- verify/verifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify/verifier.go b/verify/verifier.go index 823ba6e0..847bce9d 100644 --- a/verify/verifier.go +++ b/verify/verifier.go @@ -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)