status-im/status-go

View on GitHub
services/communitytokens/service.go

Summary

Maintainability
B
6 hrs
Test Coverage
F
7%

Service has 42 methods (exceeds 21 allowed). Consider refactoring.
Open

type Service struct {
    manager         *Manager
    accountsManager *account.GethManager
    pendingTracker  *transactions.PendingTxTracker
    config          *params.NodeConfig
Severity: Minor
Found in services/communitytokens/service.go - About 5 hrs to fix

    Function NewService has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func NewService(rpcClient *rpc.Client, accountsManager *account.GethManager, pendingTracker *transactions.PendingTxTracker,
        config *params.NodeConfig, appDb *sql.DB, walletFeed *event.Feed, transactor *transactions.Transactor) *Service {
    Severity: Major
    Found in services/communitytokens/service.go - About 35 mins to fix

      Method Service.CreateCommunityTokenAndSave has 7 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      func (s *Service) CreateCommunityTokenAndSave(chainID int, deploymentParameters DeploymentParameters,
          deployerAddress string, contractAddress string, tokenType protobuf.CommunityTokenType, privilegesLevel token.PrivilegesLevel, transactionHash string) (*token.CommunityToken, error) {
      Severity: Major
      Found in services/communitytokens/service.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status