status-im/status-go

View on GitHub
contracts/snt/snt.go

Summary

Maintainability
F
6 days
Test Coverage

File snt.go has 2682 lines of code (exceeds 900 allowed). Consider refactoring.
Open

// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.

package snt

Severity: Major
Found in contracts/snt/snt.go - About 5 days to fix

    MiniMeTokenSession has 26 methods (exceeds 21 allowed). Consider refactoring.
    Open

    type MiniMeTokenSession struct {
        Contract     *MiniMeToken      // Generic contract binding to set the session for
        CallOpts     bind.CallOpts     // Call options to use throughout this session
        TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    }
    Severity: Minor
    Found in contracts/snt/snt.go - About 2 hrs to fix

      SNTSession has 26 methods (exceeds 21 allowed). Consider refactoring.
      Open

      type SNTSession struct {
          Contract     *SNT              // Generic contract binding to set the session for
          CallOpts     bind.CallOpts     // Call options to use throughout this session
          TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
      }
      Severity: Minor
      Found in contracts/snt/snt.go - About 2 hrs to fix

        Function DeployMiniMeToken has 9 arguments (exceeds 6 allowed). Consider refactoring.
        Open

        func DeployMiniMeToken(auth *bind.TransactOpts, backend bind.ContractBackend, _tokenFactory common.Address, _parentToken common.Address, _parentSnapShotBlock *big.Int, _tokenName string, _decimalUnits uint8, _tokenSymbol string, _transfersEnabled bool) (common.Address, *types.Transaction, *MiniMeToken, error) {
        Severity: Major
        Found in contracts/snt/snt.go - About 50 mins to fix

          Method MiniMeTokenFactoryTransactor.CreateCloneToken has 7 arguments (exceeds 6 allowed). Consider refactoring.
          Open

          func (_MiniMeTokenFactory *MiniMeTokenFactoryTransactor) CreateCloneToken(opts *bind.TransactOpts, _parentToken common.Address, _snapshotBlock *big.Int, _tokenName string, _decimalUnits uint8, _tokenSymbol string, _transfersEnabled bool) (*types.Transaction, error) {
          Severity: Major
          Found in contracts/snt/snt.go - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status