waku-org/go-waku

View on GitHub
waku/v2/protocol/rln/web3/web3.go

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Function BuildConfig has 8 return statements (exceeds 4 allowed).
Open

func BuildConfig(ctx context.Context, ethClientAddress string, registryAddress common.Address) (*Config, error) {
    ethClient, err := ethclient.DialContext(ctx, ethClientAddress)
    if err != nil {
        return nil, err
    }
Severity: Major
Found in waku/v2/protocol/rln/web3/web3.go - About 50 mins to fix

    Method Config.Build has 5 return statements (exceeds 4 allowed).
    Open

    func (w *Config) Build(ctx context.Context) error {
        if w.configured {
            return errors.New("already configured")
        }
    
    
    Severity: Major
    Found in waku/v2/protocol/rln/web3/web3.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status