bsc/accounts/abi
Marius van der Wijden f3f1e59eea
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
2020-05-13 17:50:18 +02:00
..
bind accounts/abi: accounts/abi/bind: Move topics to abi package (#21057) 2020-05-12 12:21:40 +02:00
abi_test.go accounts/abi: allow overloaded argument names (#21060) 2020-05-12 13:02:23 +02:00
abi.go all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
argument.go accounts/abi: simplify reflection logic (#21058) 2020-05-13 17:50:18 +02: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) 2020-05-05 16:30:43 +02:00
event_test.go accounts/abi: simplify reflection logic (#21058) 2020-05-13 17:50:18 +02:00
event.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +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: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
pack_test.go accounts/abi: added abi test cases, minor bug fixes (#20903) 2020-04-27 15:07:33 +02:00
pack.go accounts/abi: move U256Bytes to common/math (#21020) 2020-05-04 14:09:14 +02:00
packing_test.go accounts/abi: added abi test cases, minor bug fixes (#20903) 2020-04-27 15:07:33 +02:00
reflect_test.go accounts/abi: Add tests for reflection ahead of refactor (#18434) 2019-01-15 16:45:52 +01:00
reflect.go accounts/abi: simplify reflection logic (#21058) 2020-05-13 17:50:18 +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: accounts/abi/bind: Move topics to abi package (#21057) 2020-05-12 12:21:40 +02:00
type_test.go account/abi: remove superfluous type checking (#21022) 2020-05-05 16:30:43 +02:00
type.go accounts/abi: allow overloaded argument names (#21060) 2020-05-12 13:02:23 +02:00
unpack_test.go accounts/abi: simplify reflection logic (#21058) 2020-05-13 17:50:18 +02:00
unpack.go accounts/abi: accounts/abi/bind: Move topics to abi package (#21057) 2020-05-12 12:21:40 +02:00