aergoio/aergo

View on GitHub
fee/gas.go

Summary

Maintainability
A
35 mins
Test Coverage
A
96%

Function GasLimit has 5 return statements (exceeds 4 allowed).
Open

func GasLimit(version int32, isFeeDelegation bool, txGasLimit uint64, payloadSize int, gasPrice, usedFee, senderBalance, receiverBalance *big.Int) (gasLimit uint64, err error) {
    // 1. no gas limit
    if GasEnabled(version) != true {
        return
    }
Severity: Major
Found in fee/gas.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status