Commit Graph
37 Commits
Author SHA1 Message Date
David Braun 864071fd30 Fix staticPartLength calculation for multidimensional arrays. (#527)
* Remove extraneous whitespace.

* Fix dynamicOffset calculation when encoding params.

Dynamic types should contribute only one word, not their staticPartLength.

* Fix staticPartLength calculation for multidimensional arrays.

Previously it was accounting for only one of the dimensions.

* Define default behavior for SolidityType.staticPartLength.

The default behavior was defined redundantly for every type.
2017-01-05 15:55:55 +01:00
David Braun 02f083198c Fix #483 by improving formatting of bytes type. 2016-11-21 13:36:34 -05:00
David Braun b4613cc5f5 Remove bytes64 test.
There is no bytes64 type in Solidity (http://solidity.readthedocs.io/en/1242/types.html#fixed-size-byte-arrays).
2016-11-21 12:12:46 -05:00
David Braun 7efbe40c9c Remove extraneous whitespace. 2016-11-21 12:12:41 -05:00
debris 669a70f2fa tests for encoding && decoding long sequences of bytes, #315 2015-10-05 10:00:59 +02:00
debris 72ed89fd1b fixed #321, encoding/decodig fixed size arrays of bytes 2015-10-05 08:51:01 +02:00
debris bbe031a35f fixed decoding big uints 2015-08-12 08:39:17 +02:00
debris ac7ac14760 use utf8 library for utf encoding/decoding 2015-08-10 21:38:27 +02:00
debris 9b005e4473 removed utf8 support, do not use "escape" && "unescape" 2015-08-10 21:23:56 +02:00
debris 55240b2ca1 fixed order of nested arrays encoding/decoding 2015-07-29 17:31:51 +02:00
debris b46140cd07 fixed array order in address, bool, bytes array order 2015-07-29 17:00:11 +02:00
debris ae34877774 encoding/decoding all tests passing 2015-07-28 16:47:56 +02:00
debris 3f8ec7ed13 real && ureal types 2015-07-28 15:56:18 +02:00
debris cf4817e785 fixed bug in getOffsets 2015-07-28 15:04:33 +02:00
debris 1a3d7e821a refactored dynamic bytes and uint encoding 2015-07-28 14:39:26 +02:00
debris cc215ceb40 todo, fix encoding of nested dynamic arrays 2015-07-28 12:27:12 +02:00
debris d38f8bcbe6 solidity type int 2015-07-28 10:13:59 +02:00
debris f3e0fdaec9 bool type 2015-07-28 09:01:05 +02:00
debris d319ee8d92 nested encoding in progress 2015-07-28 00:14:41 +02:00
debris 38b698dadd decoding refactor, nested arrays 2015-07-27 22:38:33 +02:00
debris 13807c1b19 solidity types prototypes 2015-07-27 15:10:10 +02:00
Marek Kotewicz 4a7edb5ad8 fixed utf8 encoding/decoding in solidity params 2015-07-21 11:35:52 +02:00
Marek Kotewicz 490dde52a7 fixed encoding/decoding strings, #249 2015-06-30 12:02:46 +02:00
Marek Kotewicz b3f5d0927c fixed long bytes dynamic decoding/encoding, #249 2015-06-30 11:16:15 +02:00
Marek Kotewicz 93c8006537 tests for encoding and decoding prematurely terminated strings and strings containing internal zeros 2015-06-25 12:40:03 +02:00
Fabian Vogelsteller 189484f057 add extra int tests 2015-06-02 10:18:20 +02:00
Marek Kotewicz fa3239f457 abi string type, fixes #216, #218, #219 2015-06-01 19:50:45 +02:00
Marek Kotewicz d03bec658e decoding of empty array, fixed #210, fixed #211 2015-05-21 11:38:19 +02:00
Marek Kotewicz 6e60e1ffcd new solidity abi decoding 2015-05-09 20:15:08 +02:00
Marek Kotewicz 860ad2c48b fixed #194 2015-05-08 09:55:14 +02:00
Marek Kotewicz 330b0da690 more tests for encoding and decoding solidity params 2015-05-05 11:38:01 +02:00
Marek Kotewicz baed4c879d fixed old encoding 2015-04-28 17:41:41 +02:00
Marek Kotewicz 3b799d1284 fixed typos 2015-04-26 10:51:32 +02:00
Marek Kotewicz 4912ec6383 tests for decoding solidity params 2015-04-26 08:55:08 +02:00
Marek Kotewicz 9fa9cc77f4 fixed fixed size bytes encoding and decoding 2015-04-24 10:34:59 +02:00
Marek Kotewicz 76ced9ad22 basic tests for event encoding 2015-04-22 09:26:00 +02:00
Marek Kotewicz 888a970ac5 coder.encodeParam, coder.decodeParam tests template 2015-04-22 08:55:24 +02:00