status-im/status-go

View on GitHub
services/wallet/reader.go

Summary

Maintainability
A
3 hrs
Test Coverage
F
55%

Reader has 25 methods (exceeds 21 allowed). Consider refactoring.
Open

type Reader struct {
    tokenManager                   token.ManagerInterface
    marketManager                  *market.Manager
    persistence                    token.TokenBalancesStorage
    walletFeed                     *event.Feed
Severity: Minor
Found in services/wallet/reader.go - About 2 hrs to fix

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

        balances map[uint64]map[common.Address]map[common.Address]*hexutil.Big,
        tok *token.Token,
        address common.Address,
        decimals uint,
        cachedTokens map[common.Address][]token.StorageToken,
    Severity: Major
    Found in services/wallet/reader.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status