• Marius van der Wijden's avatar
    accounts/abi: simplify reflection logic (#21058) · f3f1e59e
    Marius van der Wijden authored
    * 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
    f3f1e59e
Name
Last commit
Last update
..
bind Loading commit data...
abi.go Loading commit data...
abi_test.go Loading commit data...
argument.go Loading commit data...
doc.go Loading commit data...
error.go Loading commit data...
event.go Loading commit data...
event_test.go Loading commit data...
method.go Loading commit data...
method_test.go Loading commit data...
pack.go Loading commit data...
pack_test.go Loading commit data...
packing_test.go Loading commit data...
reflect.go Loading commit data...
reflect_test.go Loading commit data...
topics.go Loading commit data...
topics_test.go Loading commit data...
type.go Loading commit data...
type_test.go Loading commit data...
unpack.go Loading commit data...
unpack_test.go Loading commit data...