status-im/status-go

View on GitHub
services/communitytokens/estimations.go

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

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

func (s *Service) deployOwnerTokenEstimate(ctx context.Context, chainID uint64, fromAddress string,
    ownerTokenParameters DeploymentParameters, masterTokenParameters DeploymentParameters,
    communityID string, signerPubKey string) (*CommunityTokenFees, error) {
Severity: Major
Found in services/communitytokens/estimations.go - About 35 mins to fix

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

    func (s *Service) deployOwnerTokenGasUnits(ctx context.Context, chainID uint64, fromAddress string,
        ownerTokenParameters DeploymentParameters, masterTokenParameters DeploymentParameters,
        communityID string, signerPubKey string) (uint64, error) {
    Severity: Major
    Found in services/communitytokens/estimations.go - About 35 mins to fix

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

      func (s *Service) estimateMethodForTokenInstance(ctx context.Context, contractInstance TokenInstance, chainID uint64, contractAddress string, fromAddress string, methodName string, args ...interface{}) (uint64, error) {
      Severity: Major
      Found in services/communitytokens/estimations.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status