status-im/status-go

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

Summary

Maintainability
A
3 hrs
Test Coverage
F
26%

HopBridgeProcessor has 24 methods (exceeds 21 allowed). Consider refactoring.
Open

type HopBridgeProcessor struct {
    transactor    transactions.TransactorIface
    httpClient    *thirdparty.HTTPClient
    tokenManager  *token.Manager
    contractMaker *contracts.ContractMaker
Severity: Minor
Found in services/wallet/router/pathprocessor/processor_bridge_hop.go - About 2 hrs to fix

    Method HopBridgeProcessor.sendL1BridgeTx has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func (h *HopBridgeProcessor) sendL1BridgeTx(contractAddress common.Address, ethClient chain.ClientInterface, toChainID uint64,
        to common.Address, txOpts *bind.TransactOpts, token *token.Token, bonderFee *BonderFee) (tx *ethTypes.Transaction, err error) {
    Severity: Major
    Found in services/wallet/router/pathprocessor/processor_bridge_hop.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status