Commit Graph

43 Commits

Author SHA1 Message Date
Song
1d897c842b
move is_string() to the front of is_numeric()
toHex: is numbericPHP Fatal error: Uncaught Error: Call to a member function toHex() on array in \web3.php\src\Formatters\IntegerFormatter.php:36
move is_string() to the front of is_numeric(), resolve the problem of digit string recognition. such as a string "20180001"
2018-11-16 15:49:43 +08:00
Song
a4251595a2
Fix toHex: is numbericPHP Fatal error: Uncaught Error: Call to a member function toHex() on array in IntegerFormatter.php:36
move is_string() to the front of is_numeric(), resolve the problem of digit string recognition. such as: string "20180001"
2018-11-16 15:34:07 +08:00
sc0Vu
4fd5d1ab67 Fix #83
Return $fractionLength when number is with decimal point.
2018-05-27 22:48:02 +08:00
sc0Vu
a2a68dd516 Fix undefined pow function in phpseclib 2.0 2018-03-31 10:28:45 +08:00
sc0Vu
507b1d89e6 Fix 53
toWei support fraction/float number.
2018-03-05 17:32:19 +08:00
sc0Vu
9aacaffff8 Return 0 when number is empty string. 2018-03-05 16:52:03 +08:00
sc0Vu
d9b2dc3c6f Add fraction number string support. 2018-03-05 16:41:55 +08:00
sc0Vu
5a80fb4245 Add negative string support. 2018-03-05 16:29:42 +08:00
sc0Vu
bb523cc04b Add comments,__get and __set. 2018-02-07 13:55:32 +08:00
sc0Vu
718a913902 Fix json method to string and add tests. 2018-02-07 10:53:10 +08:00
sc0Vu
b59a60f17e isAddress test 2018-02-07 10:21:20 +08:00
sc0Vu
9ad27c527e Add tests. 2018-02-06 18:12:21 +08:00
sc0Vu
f231b23bb9 Fix toBn bug
Fix $bn not define when call toBn with BigNumber instance.
2018-02-06 18:05:55 +08:00
sc0Vu
926ecca129 typo 2018-01-31 16:43:14 +08:00
sc0Vu
ed5a17c256 typo 2018-01-25 11:53:26 +08:00
sc0Vu
ed57c92446 Change utils::toHex. 2018-01-25 11:49:21 +08:00
sc0Vu
63fea73d4c typo 2018-01-24 12:38:35 +08:00
sc0Vu
4a60041dde Fix call function statically error
Non-static method Web3\Utils::toString() should not be called
statically.
2018-01-12 12:28:44 +08:00
sc0Vu
917f08e74f toString() 2018-01-09 17:45:13 +08:00
sc0Vu
b61d90216e json string to associative array 2017-12-29 16:39:17 +08:00
sc0Vu
c4d2c6edfd Utils.php 2017-12-29 15:31:18 +08:00
sc0Vu
0513bbe560 Fix toBn hex string problem. 2017-12-28 17:35:19 +08:00
sc0Vu
1766e37a66 toBn. 2017-12-28 14:53:55 +08:00
sc0Vu
9e765ee0e8 toBn. 2017-12-28 14:53:00 +08:00
sc0Vu
10a9a66987 toBn. 2017-12-28 14:52:13 +08:00
sc0Vu
ab90423aab isHex. 2017-12-28 11:49:54 +08:00
sc0Vu
e10020d2dc Utils isAddressChecksum 2017-12-27 17:20:01 +08:00
sc0Vu
d299725cdd Utils isAddress 2017-12-27 16:32:23 +08:00
sc0Vu
63a748e4dc Patch passing array to jsonToArroy not working. 2017-12-26 14:44:29 +08:00
sc0Vu
7b6e35108f comment 2017-12-26 14:25:54 +08:00
sc0Vu
1e4c40883a Throw exception when depth is 0. 2017-12-26 12:06:58 +08:00
sc0Vu
59c1876818 Utils jsonToArray 2017-12-26 11:59:16 +08:00
sc0Vu
e25e0cc3f1 jsonMethodToString 2017-12-25 11:19:14 +08:00
sc0Vu
afb0225721 Utils 2017-12-25 10:28:53 +08:00
sc0Vu
fbc85e74d0 Add fromWei in Utils. 2017-12-25 10:10:17 +08:00
sc0Vu
7c1755cc9c Change toWei. 2017-12-25 09:54:58 +08:00
sc0Vu
46c252a44e toEther 2017-12-24 23:42:46 +08:00
sc0Vu
d58e2e751c Add toWei and bignumber 2017-12-24 20:35:28 +08:00
sc0Vu
fce712ddcd stripZero 2017-12-22 18:12:47 +08:00
sc0Vu
de19210492 isZeroPrefixed 2017-12-22 18:07:31 +08:00
sc0Vu
11ffbf93d6 hexToBin 2017-12-20 15:09:52 +08:00
sc0Vu
02b30ee2d5 Add Keccak256 sha3 usage. 2017-12-20 14:15:57 +08:00
sc0Vu
ffb02edee7 Web3\Utils
- toHex
- hexToBin
2017-12-20 11:49:52 +08:00