synapsecns/sanguine

View on GitHub
agents/config/domain.go

Summary

Maintainability
A
45 mins
Test Coverage

Method DomainConfig.IsValid has 7 return statements (exceeds 4 allowed).
Open

func (d DomainConfig) IsValid(_ context.Context) (ok bool, err error) {
    if !utils.ContainsString(chainTypeList, d.Type) {
        return false, fmt.Errorf("invalid chain type %s, %w", d.Type, ErrInvalidChainType)
    }

Severity: Major
Found in agents/config/domain.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status