Leonid Gaiazov
557268d116
Fixed a bug where negative numbers were rounded up instead of rounding down ( #507 )
...
There was an issue in combination of `solidity.formatters.formatInputInt` and `utils.toTwosComplement` where the value was rounded *after* performing the toTwosComplement. This caused negative floats to round _UP_ instead of rounding _DOWN_. I'm not sure if this is a bug or intentional, but from reading the code it appears to be intended to be rounded down.
Added simple unit test to demonstrate the behavior
2016-11-11 11:38:03 +01:00
debris
b794007a52
sed ethereum.js -> web3.js
2015-10-08 15:34:07 +08:00
debris
639f451517
toAscii/fromAscii -> toUtf8/fromUtf8
2015-08-10 22:11:37 +02:00
debris
55240b2ca1
fixed order of nested arrays encoding/decoding
2015-07-29 17:31:51 +02:00
debris
ae34877774
encoding/decoding all tests passing
2015-07-28 16:47:56 +02:00
debris
03f6a5b849
common fixed in encoding
2015-07-28 15:46:38 +02:00
debris
3e66cca699
encoding fixed size variables > 32 bytes"
2015-07-27 14:09:12 +02:00
Fabian Vogelsteller
3fe001c235
fixed build error
2015-07-21 15:51:19 +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
Fabian Vogelsteller
ecf0a2cbdf
changed | to Math.floor
2015-06-22 15:55:24 +02:00
Fabian Vogelsteller
9061116db3
fixed build issues in formatInputDynamicBytes
2015-06-22 11:17:26 +02:00
Marek Kotewicz
fa3239f457
abi string type, fixes #216 , #218 , #219
2015-06-01 19:50:45 +02:00
Marek Kotewicz
6e60e1ffcd
new solidity abi decoding
2015-05-09 20:15:08 +02:00
Marek Kotewicz
3f0d1c8b41
new abi proposal implementation of encoding
2015-05-09 19:05:34 +02:00
Marek Kotewicz
860ad2c48b
fixed #194
2015-05-08 09:55:14 +02:00
Marek Kotewicz
baed4c879d
fixed old encoding
2015-04-28 17:41:41 +02:00
Marek Kotewicz
9fa9cc77f4
fixed fixed size bytes encoding and decoding
2015-04-24 10:34:59 +02:00
Marek Kotewicz
f767a9a68a
removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes
2015-04-22 09:01:14 +02:00
Marek Kotewicz
941535fe47
SolidityParam moved to its own file && documented
2015-04-20 10:36:11 +02:00
Marek Kotewicz
0567ba1826
outputParser do not require 0x prefix before hash
2015-04-16 22:11:15 +02:00
Marek Kotewicz
dccfca1af5
solidity abi refactor in progress
2015-04-16 21:16:26 +02:00
Marek Kotewicz
d643d06b78
solidity abi refactor in progress
2015-04-16 16:37:13 +02:00
Marek Kotewicz
5e150378c8
fixed formatting address
2015-04-02 13:08:58 +02:00
dchambers
0267e85d41
Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser.
2015-03-16 08:08:29 +00:00
Marek Kotewicz
c7f8373191
separated formatters files
2015-03-08 18:31:08 +01:00
Marek Kotewicz
068bdd7276
changed project structure
2015-03-08 18:18:52 +01:00