waku-org/go-waku

View on GitHub
cmd/waku/rlngenerate/web3.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func register(ctx context.Context, web3Config *web3.Config, idComm rln.IDCommitment) (rln.MembershipIndex, error) {
    // check if the contract exists by calling a static function
    membershipFee, err := getMembershipFee(ctx, web3Config.RLNContract)
    if err != nil {
        return 0, err
Severity: Major
Found in cmd/waku/rlngenerate/web3.go - About 50 mins to fix

    Function buildTransactor has 6 return statements (exceeds 4 allowed).
    Open

    func buildTransactor(ctx context.Context, membershipFee *big.Int, chainID *big.Int) (*bind.TransactOpts, error) {
        auth, err := bind.NewKeyedTransactorWithChainID(options.ETHPrivateKey, chainID)
        if err != nil {
            return nil, err
        }
    Severity: Major
    Found in cmd/waku/rlngenerate/web3.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status