go-ethereum/accounts/abi/abigen
maskpp bc67e7dd48
accounts/abi: generate TryPack* methods for abigen v2 bindings (#31692)
1. Fix the error return format.
**todo**: ~~`bindtype` needs more complex logic to fix it.~~
`
if err != nil {
  return nil, err
}
if err == nil {
  return obj, nil
}
`
2. ~~Return pointer type object to avoid copying the whole struct
content.~~
3. Give the panic decision to the user.
4. Fix empty line at the end of function.

**TODO**: ~~fix some related test cases.~~

---------

Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com>
2025-07-02 15:16:54 +09:00
..
testdata/v2 accounts/abi: generate TryPack* methods for abigen v2 bindings (#31692) 2025-07-02 15:16:54 +09:00
bind.go cmd/abigen, accounts/abi/bind: implement abigen version 2 (#31379) 2025-03-17 15:56:55 +01:00
bind_test.go eth/filters, core/filtermaps: safe chain view update (#31590) 2025-04-20 09:48:49 +02:00
bindv2.go cmd/abigen, accounts/abi/bind: implement abigen version 2 (#31379) 2025-03-17 15:56:55 +01:00
bindv2_test.go accounts/abi: generate TryPack* methods for abigen v2 bindings (#31692) 2025-07-02 15:16:54 +09:00
source.go.tpl cmd/abigen, accounts/abi/bind: implement abigen version 2 (#31379) 2025-03-17 15:56:55 +01:00
source2.go.tpl accounts/abi: generate TryPack* methods for abigen v2 bindings (#31692) 2025-07-02 15:16:54 +09:00
template.go cmd/abigen, accounts/abi/bind: implement abigen version 2 (#31379) 2025-03-17 15:56:55 +01:00