1. 14 Oct, 2021 1 commit
  2. 16 Sep, 2020 1 commit
    • Marius van der Wijden's avatar
      tests/fuzzers/abi: add fuzzer for fuzzing package accounts/abi (#21217) · 89884dc3
      Marius van der Wijden authored
      * tests/fuzzers/abi: added abi fuzzer
      
      * accounts/abi: fixed issues found by fuzzing
      
      * tests/fuzzers/abi: update fuzzers, added repro test
      
      * tests/fuzzers/abi: renamed abi_fuzzer to abifuzzer
      
      * tests/fuzzers/abi: updated abi fuzzer
      
      * tests/fuzzers/abi: updated abi fuzzer
      
      * accounts/abi: minor style fix
      
      * go.mod: added go-fuzz dependency
      
      * tests/fuzzers/abi: updated abi fuzzer
      
      * tests/fuzzers/abi: make linter happy
      
      * tests/fuzzers/abi: make linter happy
      
      * tests/fuzzers/abi: comment out false positives
      89884dc3
  3. 09 Jun, 2020 1 commit
  4. 05 May, 2020 1 commit
    • Marius van der Wijden's avatar
      account/abi: remove superfluous type checking (#21022) · 933acf33
      Marius van der Wijden authored
      * accounts/abi: added getType func to Type struct
      
      * accounts/abi: fixed tuple unpack
      
      * accounts/abi: removed type.Type
      
      * accounts/abi: added comment
      
      * accounts/abi: removed unused types
      
      * accounts/abi: removed superfluous declarations
      
      * accounts/abi: typo
      933acf33
  5. 04 May, 2020 1 commit
  6. 27 Apr, 2020 1 commit
    • Marius van der Wijden's avatar
      accounts/abi: added abi test cases, minor bug fixes (#20903) · e32ee6ac
      Marius van der Wijden authored
      * accounts/abi: added documentation
      
      * accounts/abi: reduced usage of arguments.LengthNonIndexed
      
      * accounts/abi: simplified reflection logic
      
      * accounts/abi: moved testjson data into global declaration
      
      * accounts/abi: removed duplicate test cases
      
      * accounts/abi: reworked abi tests
      
      * accounts/abi: added more tests for abi packing
      
      * accounts/abi/bind: refactored base tests
      
      * accounts/abi: run pack tests as subtests
      
      * accounts/abi: removed duplicate tests
      
      * accounts/abi: removed unnused arguments.LengthNonIndexed
      
      Due to refactors to the code, we do not need the arguments.LengthNonIndexed function anymore.
      You can still get the length by calling len(arguments.NonIndexed())
      
      * accounts/abi: added type test
      
      * accounts/abi: modified unpack test to pack test
      
      * accounts/abi: length check on arrayTy
      
      * accounts/abi: test invalid abi
      
      * accounts/abi: fixed rebase error
      
      * accounts/abi: fixed rebase errors
      
      * accounts/abi: removed unused definition
      
      * accounts/abi: merged packing/unpacking tests
      
      * accounts/abi: fixed [][][32]bytes encoding
      
      * accounts/abi: added tuple test cases
      
      * accounts/abi: renamed getMockLog -> newMockLog
      
      * accounts/abi: removed duplicate test
      
      * accounts/abi: bools -> booleans
      e32ee6ac
  7. 17 Oct, 2017 1 commit
  8. 27 Jun, 2017 1 commit
  9. 28 Apr, 2016 1 commit
  10. 20 Apr, 2016 1 commit
    • Jeffrey Wilcke's avatar
      accouns/abi: refactored ABI package · 5127ec10
      Jeffrey Wilcke authored
      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