From 39431da252febe3806a0079bec9e0f5cc04b1787 Mon Sep 17 00:00:00 2001 From: Aleksandr Bukata Date: Tue, 3 Dec 2024 13:49:18 +0000 Subject: [PATCH] fix lint --- core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go b/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go index da9fb86ce9..f7aad6ee94 100644 --- a/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go +++ b/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go @@ -216,13 +216,13 @@ func (s *TokenDataReader) ReadTokenData(ctx context.Context, msg cciptypes.EVM2E if len(attestationResp.Attestations) > 1 { s.lggr.Warnw("Multiple attestations received, expected one", "attestations", attestationResp.Attestations) } - var attestation *messageAttestationResponse + var attestation messageAttestationResponse for _, attestationCandidate := range attestationResp.Attestations { if attestationCandidate.MessageHash == payloadHashHex { - attestation = &attestationCandidate + attestation = attestationCandidate } } - if attestation == nil { + if attestation == (messageAttestationResponse{}) { return nil, fmt.Errorf("requested attestation %s not found in response", payloadHashHex) } s.lggr.Infow("Got response from attestation API", "messageID", msgID,