synapsecns/sanguine

View on GitHub
services/cctp-relayer/attestation/circleapi.go

Summary

Maintainability
A
45 mins
Test Coverage

Method CircleAPI.GetAttestation has 7 return statements (exceeds 4 allowed).
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)
Severity: Major
Found in services/cctp-relayer/attestation/circleapi.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status