- 10 1月, 2019 2 次提交
-
-
由 Guillaume Ballet 提交于
Co-authored-by:
weimumu <934657014@qq.com>
-
由 gary rong 提交于
-
- 29 12月, 2018 1 次提交
-
-
由 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.
-
- 28 12月, 2018 1 次提交
-
-
由 weimumu0515 提交于
-
- 22 12月, 2018 1 次提交
-
-
由 bas-vk 提交于
-
- 17 12月, 2018 1 次提交
-
-
由 weimumu0515 提交于
* fix slice unpack bug in accounts/abi
-
- 04 9月, 2018 1 次提交
-
-
由 Diep Pham 提交于
-
- 04 4月, 2018 1 次提交
-
-
由 Ricardo Domingos 提交于
-
- 05 3月, 2018 1 次提交
-
-
由 protolambda 提交于
accounts/abi: Abi binding support for nested arrays, fixes #15648, including nested array unpack fix (#15676) * accounts/abi/bind: support for multi-dim arrays Also: - reduce usage of regexes a bit. - fix minor Java syntax problems Fixes #15648 * accounts/abi/bind: Add some more documentation * accounts/abi/bind: Improve code readability * accounts/abi: bugfix for unpacking nested arrays The code previously assumed the arrays/slices were always 1 level deep. While the packing supports nested arrays (!!!). The current code for unpacking doesn't return the "consumed" length, so this fix had to work around that by calculating it (i.e. packing and getting resulting length) after the unpacking of the array element. It's far from ideal, but unpacking behaviour is fixed now. * accounts/abi: Fix unpacking of nested arrays Removed the temporary workaround of packing to calculate size, which was incorrect for slice-like types anyway. Full size of nested arrays is used now. * accounts/abi: deeply nested array unpack test Test unpacking of an array nested more than one level. * accounts/abi: Add deeply nested array pack test Same as the deep nested array unpack test, but the other way around. * accounts/abi/bind: deeply nested arrays bind test Test the usage of bindings that were generated for methods with multi-dimensional (and not just a single extra dimension, like foo[2][3]) array arguments and returns. edit: trigger rebuild, CI failed to fetch linter module. * accounts/abi/bind: improve array binding wrapArray uses a regex now, and arrayBindingJava is improved. * accounts/abi: Improve naming of element size func The full step size for unpacking an array is now retrieved with "getFullElemSize". * accounts/abi: support nested nested array args Previously, the code only considered the outer-size of the array, ignoring the size of the contents. This was fine for most types, but nested arrays are packed directly into it, and count towards the total size. This resulted in arguments following a nested array to replicate some of the binary contents of the array. The fix: for arrays, calculate their complete contents size: count the arg.Type.Elem.Size when Elem is an Array, and repeat when their child is an array too, etc. The count is the number of 32 byte elements, similar to how it previously counted, but nested. * accounts/abi: Test deep nested arr multi-arguments Arguments with a deeply nested array should not cause the next arguments to be read from the wrong position.
-
- 21 2月, 2018 2 次提交
-
-
由 Martin Holst Swende 提交于
-
由 Martin Holst Swende 提交于
-
- 14 2月, 2018 1 次提交
-
-
由 Felix Lange 提交于
-
- 23 1月, 2018 1 次提交
-
-
由 croath 提交于
-
- 31 12月, 2017 1 次提交
-
-
由 croath 提交于
-
- 30 12月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
* accounts/abi: handle named ouputs prefixed with underscores * accounts/abi: handle collinding outputs for struct unpacks * accounts: handle purely underscore output names
-
- 21 12月, 2017 2 次提交
-
-
由 Robert Zaremba 提交于
-
由 Robert Zaremba 提交于
+ Reworked Method Unpack tests into more readable components + Added Method Unpack into slice test
-
- 20 12月, 2017 1 次提交
-
-
由 Dmitry Shulyak 提交于
Fixes #15617
-
- 13 12月, 2017 1 次提交
-
-
由 Zach 提交于
-
- 08 11月, 2017 1 次提交
-
-
由 ferhat elmas 提交于
-
- 17 10月, 2017 1 次提交
-
-
由 RJ Catalano 提交于
-
- 27 6月, 2017 1 次提交
-
-
由 RJ Catalano 提交于
* accounts/abi: reorganizing package and some notes and a quick correction of name. Signed-off-by: NRJ Catalano <rj@monax.io> get rid of some imports Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: move file names Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fix boolean decode function Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fix for the array set and for creating a bool Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: be very very very correct Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fix up error message and variable names Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: take out unnecessary argument in pack method Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: add bool unpack test and add a panic to readBool function Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fix panic message Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: change from panic to basic error Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fix nil to false Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fill out type regex tests and fill with the correct type for integers Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: move packNumbers into pack.go. Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: separation of the testing suite into appropriately named files. Signed-off-by: NRJ Catalano <rj@monax.io> * account/abi: change to hex string tests. Signed-off-by: NRJ Catalano <rj@monax.io> * account/abi: fix up rest of tests to hex Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: declare bool at the package level Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: use errors package in the error file. Signed-off-by: NRJ Catalano <rj@monax.io> * accounts/abi: fix ugly hack and fix error type declaration. Signed-off-by: NRJ Catalano <rj@monax.io>
-
- 09 1月, 2017 1 次提交
-
-
由 tbocek 提交于
-
- 06 1月, 2017 1 次提交
-
-
由 Felix Lange 提交于
-
- 05 1月, 2017 1 次提交
-
-
由 RJ 提交于
-
- 22 12月, 2016 1 次提交
-
-
由 bas-vk 提交于
-
- 04 11月, 2016 1 次提交
-
-
由 RJ 提交于
solves #3119 Signed-off-by: NVoR0220 <rj@erisindustries.com>
-
- 12 5月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 11 5月, 2016 1 次提交
-
-
由 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.
-
- 28 4月, 2016 3 次提交
-
-
由 Jeffrey Wilcke 提交于
-
由 Jeffrey Wilcke 提交于
-
由 Jeffrey Wilcke 提交于
-
- 20 4月, 2016 1 次提交
-
-
由 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
-
- 05 4月, 2016 3 次提交
-
-
由 Jeffrey Wilcke 提交于
-
由 Jeffrey Wilcke 提交于
-
由 Jeffrey Wilcke 提交于
-
- 24 3月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 15 3月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Fixed up `[]byte` slice support such that `function print(bytes input)` accepts `[]byte` as input and treats it as 1 element rather than a slice of multiple elements. Added support for variable length input parameters like `bytes` and `strings`.
-
- 22 2月, 2016 1 次提交
-
-
As we aren't really using the standarized SHA-3
-
- 15 2月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Added support for fixed size and arbitrary length byte arrays to be marshallable in fixed size (typed) byte slices.
-