• Thomas Bocek's avatar
    accounts/abi: support custom int slice types · 972f0bd3
    Thomas Bocek authored
    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
    972f0bd3
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...
numbers.go Loading commit data...
numbers_test.go Loading commit data...
packing.go Loading commit data...
reflect.go Loading commit data...
type.go Loading commit data...
type_test.go Loading commit data...