• J
    accouns/abi: refactored ABI package · 5127ec10
    Jeffrey Wilcke 提交于
    Refactored the abi package parsing and type handling. Relying mostly on
    package reflect as opposed to most of our own type reflection. Our own
    type reflection is still used however for cases such as Bytes and
    FixedBytes (abi: bytes•).
    
    This also inclused several fixes for slice handling of arbitrary and
    fixed size for all supported types.
    
    This also further removes implicit type casting such as assigning,
    for example `[2]T{} = []T{1}` will fail, however `[2]T{} == []T{1, 2}`
    (notice assigning *slice* to fixed size *array*). Assigning arrays to
    slices will always succeed if they are of the same element type.
    
    Incidentally also fixes #2379
    5127ec10
numbers.go 3.6 KB