contract/name/name.go
Function UpdateName
has 6 return statements (exceeds 4 allowed). Open
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))
}