Skip to content

Commit 85059ed

Browse files
committed
accounts/abi: delete duplicate error check (ethereum#29136)
1 parent b6f3007 commit 85059ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

accounts/abi/type.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
178178
return Type{}, errors.New("abi: purely anonymous or underscored field is not supported")
179179
}
180180
fieldName := ResolveNameConflict(name, func(s string) bool { return used[s] })
181-
if err != nil {
182-
return Type{}, err
183-
}
184181
used[fieldName] = true
185182
if !isValidFieldName(fieldName) {
186183
return Type{}, fmt.Errorf("field %d has invalid name", idx)

0 commit comments

Comments
 (0)