mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
accounts/abi/abigen: remove duplicated method normalization logic
This commit is contained in:
parent
e97cef6365
commit
8b506f5b6f
1 changed files with 1 additions and 4 deletions
|
|
@ -167,10 +167,7 @@ func (cb *contractBinder) bindMethod(original abi.Method) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
normalized.Outputs = normalizeArgs(original.Outputs)
|
normalized.Outputs = normalizeArgs(original.Outputs)
|
||||||
for j, output := range normalized.Outputs {
|
for _, output := range normalized.Outputs {
|
||||||
if output.Name != "" {
|
|
||||||
normalized.Outputs[j].Name = abi.ToCamelCase(output.Name)
|
|
||||||
}
|
|
||||||
if hasStruct(output.Type) {
|
if hasStruct(output.Type) {
|
||||||
cb.binder.BindStructType(output.Type)
|
cb.binder.BindStructType(output.Type)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue