go-ethereum/accounts/abi
Daniel Liu b9bcf17694 accounts/abi: simplify reflection logic (#21058)
* accounts/abi: simplified reflection logic

* accounts/abi: simplified reflection logic

* accounts/abi: removed unpack

* accounts/abi: removed comments

* accounts/abi: removed uneccessary complications

* accounts/abi: minor changes in error messages

* accounts/abi: removed unnused code

* accounts/abi: fixed indexed argument unpacking

* accounts/abi: removed superfluous test cases

This commit removes two test cases. The first one is trivially invalid as we have the same
test cases as passing in packing_test.go L375. The second one passes now,
because we don't need the mapArgNamesToStructFields in unpack_atomic anymore.
Checking for purely underscored arg names generally should not be something we do
as the abi/contract is generally out of the control of the user.

* accounts/abi: removed comments, debug println

* accounts/abi: added commented out code

* accounts/abi: addressed comments

* accounts/abi: remove unnecessary dst.CanSet check

* accounts/abi: added dst.CanSet checks
2025-01-24 16:18:29 +08:00
..
bind accounts/abi: move topics to abi package (#21057) 2025-01-24 16:18:29 +08:00
abi.go accounts/abi: remove function Unpack2 (#20830) 2025-01-24 16:18:29 +08:00
abi_test.go accounts/abi: allow overloaded argument names (#21060) 2025-01-24 16:18:29 +08:00
argument.go accounts/abi: simplify reflection logic (#21058) 2025-01-24 16:18:29 +08:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error.go account/abi: remove superfluous type checking (#21022) 2025-01-24 16:18:29 +08:00
event.go accounts/abi: Prevent recalculation of internal fields (#20895) 2025-01-24 16:18:29 +08:00
event_test.go accounts/abi: simplify reflection logic (#21058) 2025-01-24 16:18:29 +08:00
method.go accounts/abi: Prevent recalculation of internal fields (#20895) 2025-01-24 16:18:29 +08:00
method_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2025-01-24 16:18:29 +08:00
pack.go accounts/abi/bind: fix destructive packing of *big.Int (#20412) 2025-01-24 16:18:29 +08:00
pack_test.go accounts/abi: added abi test cases, minor bug fixes (#20903) 2025-01-24 16:18:29 +08:00
packing_test.go accounts/abi: added abi test cases, minor bug fixes (#20903) 2025-01-24 16:18:29 +08:00
reflect.go accounts/abi: simplify reflection logic (#21058) 2025-01-24 16:18:29 +08:00
reflect_test.go accounts/abi: Add tests for reflection ahead of refactor (#18434) 2025-01-24 16:18:29 +08:00
topics.go accounts/abi: move topics to abi package (#21057) 2025-01-24 16:18:29 +08:00
topics_test.go accounts/abi: move topics to abi package (#21057) 2025-01-24 16:18:29 +08:00
type.go accounts/abi: allow overloaded argument names (#21060) 2025-01-24 16:18:29 +08:00
type_test.go account/abi: remove superfluous type checking (#21022) 2025-01-24 16:18:29 +08:00
unpack.go accounts/abi: move topics to abi package (#21057) 2025-01-24 16:18:29 +08:00
unpack_test.go accounts/abi: simplify reflection logic (#21058) 2025-01-24 16:18:29 +08:00