accounts/abi: change unpacking of abi fields w/ underscores (#16513)
* accounts/abi: fix name styling when unpacking abi fields w/ underscores ABI fields with underscores that are being unpacked into structs expect structs with following form: int_one -> Int_one whereas in abigen the generated structs are camelcased int_one -> IntOne so updated the unpack method to expect camelcased structs as well.
Showing
- accounts/abi/argument.go 8 additions, 9 deletionsaccounts/abi/argument.go
- accounts/abi/bind/bind.go 4 additions, 37 deletionsaccounts/abi/bind/bind.go
- accounts/abi/reflect.go 1 addition, 1 deletionaccounts/abi/reflect.go
- accounts/abi/unpack_test.go 47 additions, 0 deletionsaccounts/abi/unpack_test.go
Loading
Please register or sign in to comment