go-ethereum/accounts/abi/abigen/testdata
Daniel Liu b3ae8beb91
accounts/abi: generate TryPack* methods for abigen v2 bindings #31692 (#1424)
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: maskpp <maskpp266@gmail.com>
Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com>
2025-09-17 08:24:03 +08:00
..
v2 accounts/abi: generate TryPack* methods for abigen v2 bindings #31692 (#1424) 2025-09-17 08:24:03 +08:00