Skip to content

Commit

Permalink
accounts/abi: delete duplicate error check (ethereum#29136)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasyzb authored Mar 4, 2024
1 parent a732ad0 commit b408b3e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
return Type{}, errors.New("abi: purely anonymous or underscored field is not supported")
}
fieldName := ResolveNameConflict(name, func(s string) bool { return used[s] })
if err != nil {
return Type{}, err
}
used[fieldName] = true
if !isValidFieldName(fieldName) {
return Type{}, fmt.Errorf("field %d has invalid name", idx)
Expand Down

0 comments on commit b408b3e

Please sign in to comment.