Skip to content

Commit 8b506f5

Browse files
committed
accounts/abi/abigen: remove duplicated method normalization logic
1 parent e97cef6 commit 8b506f5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

accounts/abi/abigen/bindv2.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,7 @@ func (cb *contractBinder) bindMethod(original abi.Method) error {
167167
}
168168
}
169169
normalized.Outputs = normalizeArgs(original.Outputs)
170-
for j, output := range normalized.Outputs {
171-
if output.Name != "" {
172-
normalized.Outputs[j].Name = abi.ToCamelCase(output.Name)
173-
}
170+
for _, output := range normalized.Outputs {
174171
if hasStruct(output.Type) {
175172
cb.binder.BindStructType(output.Type)
176173
}

0 commit comments

Comments
 (0)