go-ethereum/accounts/abi
divergencetech b45931cc4a
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>
2021-12-02 13:53:10 +01:00
..
bind accounts/abi/bind: correctly handle structs used only as constructor params (#23940) 2021-12-02 13:53:10 +01:00
abi_test.go accounts/abi: add basic support for error types (#23161) 2021-10-14 13:33:28 +02:00
abi.go accounts/abi: add basic support for error types (#23161) 2021-10-14 13:33:28 +02:00
argument.go accounts/abi: fix resolving single struct argument (#23573) 2021-09-22 10:18:18 +02:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error_handling.go accounts/abi: add basic support for error types (#23161) 2021-10-14 13:33:28 +02:00
error.go accounts/abi: add basic support for error types (#23161) 2021-10-14 13:33:28 +02:00
event_test.go accounts/abi: ABI explicit difference between Unpack and UnpackIntoInterface (#21091) 2020-09-28 14:10:26 +02:00
event.go accounts/abi: improve documentation and names (#21540) 2020-09-20 10:43:57 +02:00
method_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
method.go accounts/abi: improve documentation and names (#21540) 2020-09-20 10:43:57 +02:00
pack_test.go accounts/abi: ABI explicit difference between Unpack and UnpackIntoInterface (#21091) 2020-09-28 14:10:26 +02:00
pack.go accounts/abi: improve documentation and names (#21540) 2020-09-20 10:43:57 +02:00
packing_test.go accounts/abi: ABI explicit difference between Unpack and UnpackIntoInterface (#21091) 2020-09-28 14:10:26 +02:00
reflect_test.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
reflect.go all: fix some go-critic linter warnings (#23709) 2021-10-13 17:31:02 +02:00
topics_test.go accounts/abi: accounts/abi/bind: Move topics to abi package (#21057) 2020-05-12 12:21:40 +02:00
topics.go accounts/abi: improve documentation and names (#21540) 2020-09-20 10:43:57 +02:00
type_test.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
type.go accounts/abi: improve documentation and names (#21540) 2020-09-20 10:43:57 +02:00
unpack_test.go accounts/abi: fix resolving single struct argument (#23573) 2021-09-22 10:18:18 +02:00
unpack.go accounts/abi: improve documentation and names (#21540) 2020-09-20 10:43:57 +02:00