go-ethereum/accounts/abi/bind
Daniel Liu b33307eaea accounts/abi/bind: correctly handle structs used only as constructor params (#23940)
The `structs` map is populated by iterating over all methods except the constructor, which results in a nil-pointer dereference.

I've first reproduced the problem with a new test and then implemented the fix.

Co-authored-by: Arran Schlosberg <me@arranschlosberg.com>
2025-01-24 16:18:30 +08:00
..
backends accounts/abi/bind/backends: fix race condition in simulated backend (#23898) 2025-01-24 16:18:30 +08:00
auth.go accounts/abi/bind: set Context in TransactOpts (#23188) 2025-01-24 16:18:30 +08:00
backend.go accounts/abi: improve documentation and names (#21540) 2025-01-24 16:18:29 +08:00
base.go accounts/abi/bind: refactor transact method (#23719) 2025-01-24 16:18:30 +08:00
base_test.go accounts/abi/bind: check event signature before parsing (#23230) 2025-01-24 16:18:30 +08:00
bind.go accounts/abi/bind: correctly handle structs used only as constructor params (#23940) 2025-01-24 16:18:30 +08:00
bind_test.go accounts/abi/bind: correctly handle structs used only as constructor params (#23940) 2025-01-24 16:18:30 +08:00
template.go accounts/abi/bind: parse ABI only once, create metadata struct (#22583) 2025-01-24 16:18:30 +08:00
util.go all: use errrors.New instead of empty fmt.Errorf 2024-06-14 19:19:21 +08:00
util_test.go accounts/abi/bind: fix sim backend test for 1559 (#23038) 2025-01-24 16:18:30 +08:00