op-geth/accounts/abi
Jeffrey Wilcke 91a7a4a786 accounts/abi: fixed unpacking in to already slice interfaces
Previously it was assumed that wheneven type `[]interface{}` was given
that the interface was empty. The abigen rightfully assumed that
interface slices which already have pre-allocated variable sets to be
assigned.

This PR fixes that by checking that the given `[]interface{}` is larger
than zero and assigns each value using the generic `set` function (this
function has also been moved to abi/reflect.go) and checks whether the
assignment was possible.

The generic assignment function `set` now also deals with pointers
(useful for interface slice mentioned above) by dereferencing the
pointer until it finds a setable type.
2016-05-11 13:36:27 +02:00
..
bind release, all: integrate the release service into geth 2016-05-02 16:20:21 +03:00
abi.go accounts/abi: fixed unpacking in to already slice interfaces 2016-05-11 13:36:27 +02:00
abi_test.go accounts/abi: fixed unpacking in to already slice interfaces 2016-05-11 13:36:27 +02:00
argument.go account/abi: implements event parsing 2016-02-02 15:28:59 +01:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error.go accounts/abi: fixed string and fixed size bytes packing 2016-04-28 12:41:47 +02:00
event.go all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() 2016-02-21 22:34:34 +00:00
event_test.go all: update license information 2016-04-15 09:48:05 +02:00
method.go accounts/abi: fixed string and fixed size bytes packing 2016-04-28 12:41:47 +02:00
numbers.go accouns/abi: refactored ABI package 2016-04-20 16:43:57 +02:00
numbers_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
packing.go accounts/abi: fixed string and fixed size bytes packing 2016-04-28 12:41:47 +02:00
reflect.go accounts/abi: fixed unpacking in to already slice interfaces 2016-05-11 13:36:27 +02:00
type.go accounts/abi: fixed string and fixed size bytes packing 2016-04-28 12:41:47 +02:00