go-ethereum/accounts/abi/bind
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
..
backends eth/tracers: live chain tracing with hooks #29189 (#1352) 2025-09-09 17:30:56 +08:00
v2 accounts/abi: generate TryPack* methods for abigen v2 bindings #31692 (#1424) 2025-09-17 08:24:03 +08:00
old.go cmd/abigen, accounts/abi/bind: implement abigen version 2 #31379 (#1416) 2025-09-03 15:47:12 +08:00