status-im/status-go

View on GitHub
services/wallet/router/pathprocessor/multipath_processor.go

Summary

Maintainability
A
3 hrs
Test Coverage
F
0%

Avoid deeply nested control flow statements.
Open

    } else if t.ERC1155TransferTx != nil {
        return t.ERC1155TransferTx.From
    }
Severity: Major
Found in services/wallet/router/pathprocessor/multipath_processor.go - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

        } else if t.ERC1155TransferTx != nil {
            return types.Address(t.ERC1155TransferTx.Recipient)
        }
    Severity: Major
    Found in services/wallet/router/pathprocessor/multipath_processor.go - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

          } else if t.ERC1155TransferTx != nil {
              return t.ERC1155TransferTx.Amount.ToInt()
          }
      Severity: Major
      Found in services/wallet/router/pathprocessor/multipath_processor.go - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

            } else if t.ERC1155TransferTx != nil {
                return types.HexBytes("")
            }
        Severity: Major
        Found in services/wallet/router/pathprocessor/multipath_processor.go - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status