plugeth/accounts/abi
Thomas Bocek 972f0bd3db
accounts/abi: support custom int slice types
On solidity contract I have "uint32 []" type, when abigen creates Go
bindings - they are also "[]uint32" type on Go side. Even though it
looks like it should work - the actual type of the data coming from
the chain is of type " []*big.Int".

When executing contract function from Go side - getting unmarshal error:
abi: cannot unmarshal []*big.Int in to []uint32

The fix is to create array with the correct type

This fixed the issue reported in: https://github.com/ethereum/go-ethereum/issues/2802
2017-01-09 11:36:31 +02:00
..
bind all: fix issues reported by honnef.co/go/simple/cmd/gosimple 2017-01-06 18:18:07 +01:00
abi_test.go all: gofmt -w -s 2017-01-06 15:52:03 +01:00
abi.go accounts/abi: support custom int slice types 2017-01-09 11:36:31 +02:00
argument.go core/vm: move Log to core/types 2017-01-06 14:15:22 +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_test.go all: update license information 2016-04-15 09:48:05 +02:00
event.go accounts/abi: add support for "anonymous" and "indexed" for events (#3464) 2016-12-22 01:51:20 +01:00
method.go accounts/abi: Negative numbers not properly converted in ABI encoding 2016-06-06 14:27:15 +02:00
numbers_test.go accounts/abi: fix uint64 upper range encoding. 2016-06-10 12:32:08 +03:00
numbers.go accounts/abi: fix uint64 upper range encoding. 2016-06-10 12:32:08 +03:00
packing.go accounts/abi: add support for function types (#3405) 2017-01-05 11:46:44 +01:00
reflect.go accounts/abi: differentiate between static and dynamic arrays (#3121) 2016-11-03 23:25:19 +01:00
type_test.go accounts/abi: clean up PR and add type parsing tests 2016-12-19 14:11:11 +02:00
type.go accounts/abi: support custom int slice types 2017-01-09 11:36:31 +02:00