1. 23 1月, 2019 1 次提交
  2. 10 1月, 2019 1 次提交
  3. 29 12月, 2018 1 次提交
    • M
      accounts/abi: change unpacking of abi fields w/ underscores (#16513) · a4af7343
      Matt K 提交于
      * accounts/abi: fix name styling when unpacking abi fields w/ underscores
      
      ABI fields with underscores that are being unpacked
      into structs expect structs with following form:
      
      int_one -> Int_one
      
      whereas in abigen the generated structs are camelcased
      
      int_one -> IntOne
      
      so updated the unpack method to expect camelcased structs as well.
      a4af7343
  4. 22 12月, 2018 1 次提交
  5. 14 5月, 2018 1 次提交
  6. 04 4月, 2018 1 次提交
  7. 05 3月, 2018 1 次提交
  8. 23 12月, 2017 1 次提交
  9. 21 12月, 2017 1 次提交
    • R
      accounts/abi: fix event unpack into slice · 0ed8b838
      Robert Zaremba 提交于
      + The event slice unpacker doesn't correctly extract element from the
      slice. The indexed arguments are not ignored as they should be
      (the data offset should not include the indexed arguments).
      
      + The `Elem()` call in the slice unpack doesn't work.
      The Slice related tests fails because of that.
      
      + the check in the loop are suboptimal and have been extracted
      out of the loop.
      
      + extracted common code from event and method tupleUnpack
      0ed8b838
  10. 17 10月, 2017 1 次提交
  11. 27 6月, 2017 1 次提交
  12. 04 11月, 2016 1 次提交
  13. 11 5月, 2016 1 次提交
    • J
      accounts/abi: fixed unpacking in to already slice interfaces · 91a7a4a7
      Jeffrey Wilcke 提交于
      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.
      91a7a4a7
  14. 20 4月, 2016 1 次提交
    • 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