aergoio/aergo

View on GitHub
contract/name/name.go

Summary

Maintainability
A
40 mins
Test Coverage
D
67%

Function UpdateName has 6 return statements (exceeds 4 allowed).
Open

func UpdateName(bs *state.BlockState, scs *statedb.ContractState, tx *types.TxBody,
    sender, receiver *state.AccountState, name, to string) error {
    if len(getAddress(scs, []byte(name))) <= types.NameLength {
        return fmt.Errorf("%s is not created yet", string(name))
    }
Severity: Major
Found in contract/name/name.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status