plugeth/signer/fourbyte
Marius van der Wijden ac9c03f910
accounts/abi: Prevent recalculation of internal fields (#20895)
* accounts/abi: prevent recalculation of ID, Sig and String

* accounts/abi: fixed unpacking of no values

* accounts/abi: multiple fixes to arguments

* accounts/abi: refactored methodName and eventName

This commit moves the complicated logic of how we assign method names
and event names if they already exist into their own functions for
better readability.

* accounts/abi: prevent recalculation of internal

In this commit, I changed the way we calculate the string
representations, sig representations and the id's of methods. Before
that these fields would be recalculated everytime someone called .Sig()
.String() or .ID() on a method or an event.

Additionally this commit fixes issue #20856 as we assign names to inputs
with no name (input with name "" becomes "arg0")

* accounts/abi: added unnamed event params test

* accounts/abi: fixed rebasing errors in method sig

* accounts/abi: fixed rebasing errors in method sig

* accounts/abi: addressed comments

* accounts/abi: added FunctionType enumeration

* accounts/abi/bind: added test for unnamed arguments

* accounts/abi: improved readability in NewMethod, nitpicks

* accounts/abi: method/eventName -> overloadedMethodName
2020-04-20 09:01:04 +02:00
..
4byte.go signer/fourbyte: update signatures, sort and don't compress (#19957) 2019-08-19 12:46:19 +03:00
4byte.json signer/fourbyte: update signatures, sort and don't compress (#19957) 2019-08-19 12:46:19 +03:00
abi_test.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
abi.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
fourbyte_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
fourbyte.go signer/fourbyte: update signatures, sort and don't compress (#19957) 2019-08-19 12:46:19 +03:00
validation_test.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
validation.go cmd: implement abidump (#19958) 2020-01-21 15:51:36 +01:00