services/cctp-relayer/attestation/circleapi.go
Method CircleAPI.GetAttestation
has 7 return statements (exceeds 4 allowed). Open
Open
func (c CircleAPI) GetAttestation(ctx context.Context, txHash string) (attestation []byte, err error) {
url := fmt.Sprintf("%s/%s", c.baseURL, txHash)
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
err = fmt.Errorf("could not create request: %w", err)