Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bukata-sa committed Nov 29, 2024
1 parent 174f1af commit 01cf18a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ type attestationResponse struct {
Attestations []messageAttestationResponse `json:"attestations"`
}

type SourceTokenData struct {
sourcePoolAddress []byte
destTokenAddress []byte
extraData []byte
destGasAmount uint32
}

// TODO: Implement encoding/decoding

var _ tokendata.Reader = &TokenDataReader{}
Expand Down Expand Up @@ -206,6 +199,14 @@ func (s *TokenDataReader) getLBTCMessageBody(ctx context.Context, msg cciptypes.
}

func (s *TokenDataReader) callAttestationApi(ctx context.Context, lbtcMessageHash [32]byte) (attestationResponse, error) {
_, _, _, err := s.httpClient.Get(ctx, "", s.attestationApiTimeout)
switch {
case errors.Is(err, tokendata.ErrRateLimit):
s.setCoolDownPeriod(defaultCoolDownDuration)
return attestationResponse{}, tokendata.ErrRateLimit
case err != nil:
return attestationResponse{}, err
}
return attestationResponse{}, nil
}

Expand Down

0 comments on commit 01cf18a

Please sign in to comment.