Commit Graph

368 Commits

Author SHA1 Message Date
cdetrio 54e40bb4bb validate number of args to solidity functions (#866) 2017-05-09 11:34:44 +02:00
bas-vk be528f7436 add support for Ethereum blooms (#559) 2017-02-17 11:10:34 +01:00
Anton Simernia 209239c539 add filterCreationErrorCallback argument to Filter constructor for check if filter is created (#435) 2017-01-06 11:53:51 +01:00
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
Federico Bond f33723ee39 Throw error if trying to send value to non-payable function (#534) 2017-01-05 11:23:24 +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
Pedro Branco 09044dff1d Add timeout to HTTP provider (#499) 2016-11-14 09:00:13 +01:00
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
Marius Darila b489f5e24b add formatter for syncing States (#482) 2016-09-12 15:52:36 +02:00
bas-vk c2426ad880 add eth_protocolVersion (#491) 2016-09-12 15:20:20 +02:00
kumavis 14494699c8 Add callback handling in method Filter.stopWatching 2016-08-26 16:01:44 -07:00
kumavis 74995bbbf7 Jsonrpc - fix singleton pattern 2016-08-26 14:55:16 -07:00
Leon Liang 49bed91163 Fix test coverage calculation (#467) 2016-06-29 11:34:05 +02:00
Martin 84420e3340 also passes options argument 2016-03-04 00:58:00 +01:00
Martin dd875e06aa web3.sha3 returns string with hex prefix 2016-03-04 00:47:05 +01:00
Fabian Vogelsteller fc9e96473a fixed test 2016-02-29 16:24:50 +01:00
Fabian Vogelsteller dccde3f1d7 Merge branch 'master' of github.com:ethereum/web3.js 2016-02-29 11:42:38 +01:00
Fabian Vogelsteller bb5a1d9297 Merge branch 'develop' of github.com:ethereum/web3.js into develop 2016-02-29 11:23:18 +01:00
Fabian Vogelsteller f6b7d89878 fixed tests 2016-02-29 11:22:57 +01:00
Dan Turner 6a7a896da3 Implement the "personal" API's of go-ethereum
As per: https://github.com/ethereum/go-ethereum/wiki/Go-ethereum-management-API's
2016-02-29 15:59:54 +11:00
Alexandre Van de Sande 7400df977f added checksum tests 2016-02-25 11:40:32 -03:00
Alexandre Van de Sande a824f5ad83 merge conflicts 2016-02-25 11:13:34 -03:00
ethers e2b30f4260 match with Homestead guide
https://github.com/ethereum/homestead-guide/blob/master/source/using-ethereum-the-basics/ether.rst
2016-02-24 18:55:04 -08:00
debris 2a3c011ba1 removed circular references from web3 object 2015-10-21 12:00:11 +08:00
debris ad45c571e1 Merge branch 'master' of https://github.com/ethereum/web3.js into develop 2015-10-19 11:32:49 +08:00
debris 31bcdb4496 fixed failing test 2015-10-15 14:46:47 +08:00
debris 08e92c2aaa fixed race condition in test/helpers/test.method.js 2015-10-12 15:27:12 +08:00
debris 61916f9bb8 fixed some of the test that interferred with each other 2015-10-12 14:23:16 +08:00
Gustav Simonsson 43a9626c7a Add IBAN/ICAP test for address with two leading zero bytes 2015-10-08 18:18:04 +02:00
Fabian Vogelsteller ecd0b7776f improved requestmanager 2015-10-08 13:43:53 +02:00
Fabian Vogelsteller c8f8ba8086 fixed filter polling 2015-10-08 12:17:54 +02:00
debris 553ab1d431 finished refactor? 2015-10-08 16:09:37 +08:00
debris 10e79d64b2 uncommented few more tests 2015-10-08 08:41:55 +02:00
debris 190f9815d9 eth.filter works 2015-10-08 07:42:08 +02:00
debris 9da9bfdbd4 batch requests 2015-10-08 04:45:15 +02:00
debris 95a3b5a35f most of test working 2015-10-08 04:14:43 +02:00
debris 7dff0a461a refactored extensions 2015-10-08 04:09:51 +02:00
debris 98f4318015 web3.eth test are passing 2015-10-07 05:10:02 +02:00
debris 799bd88279 refactor in progress 2015-10-07 04:32:32 +02:00
Marek Kotewicz d04c48dd8e Merge pull request #307 from caktux/develop
fromUtf8 and toUtf8 should ignore null characters
2015-10-06 03:48:54 +02:00
debris 50a42ab839 additional test and bugfix for encoding bytes3, fixed #325 2015-10-06 00:51:36 +02:00
debris 0a79a520a7 added vitaliks test to test/sha3.js 2015-10-05 13:46:50 +02:00
debris b5f8244ff6 fixed #290, #320. Fixed sha3 encoding of hex values 2015-10-05 13:45:11 +02:00
debris da082a393c fromICAP method 2015-10-05 12:50:19 +02: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
Fabian Vogelsteller b1e91b48d6 merged develop 2015-09-15 15:43:41 +02:00
beth.null 08e8b22572 Merge branch 'develop' of https://github.com/ethereum/web3.js into develop 2015-09-15 11:09:43 +02:00