Commit Graph

266 Commits

Author SHA1 Message Date
sc0Vu
4779c7e710
Fix #143
Fix wrong $argsLen in contract.
2019-02-24 16:57:26 +08:00
sc0Vu
2b5295533f
Add support for same function name but with different parameters
See issue #134
2019-02-11 22:11:29 +08:00
sc0Vu
d35ecef5f7
Fix bytes and dynamic bytes format 2019-02-11 00:10:14 +08:00
Peter Lai
b0615caf03
Merge pull request #138 from sc0Vu/fix-dynamic-bytes
Fix DynamicBytes.php
2019-01-17 01:08:50 +08:00
Peter Lai
5e4e5e35fd
Merge pull request #135 from 1099511627776/bclounge
Close connection after stream read
2019-01-17 01:08:34 +08:00
sc0Vu
fcb959dec7
Fix DynamicBytes.php
Call inputFormat failed when toBn return array of data
See: https://github.com/sc0Vu/web3.php/pull/97
2019-01-17 00:57:08 +08:00
1099511627776
b0b1841642 Fix indent 2019-01-13 12:24:06 +02:00
sc0Vu
83188b171e
Fix #112
Remove depth for jsonToArray function
2019-01-13 14:07:31 +08:00
sc0Vu
734dbebb76
Remove support for int and float in toWei 2019-01-06 23:26:21 +08:00
sc0Vu
9dd5056790
Remove comments 2018-12-21 00:19:56 +08:00
Peter Lai
53b5165062
Merge pull request #104 from sinabs/master
getTransactionReceipt result maybe null
2018-12-21 00:14:15 +08:00
sc0Vu
0ef6000be3 Fix #125 2018-12-21 00:03:38 +08:00
sc0Vu
51abbc2f5e Clean code 2018-12-14 12:12:04 +08:00
sc0Vu
f3259100ec Add test for personal_lockAccount
Change:
* Add test for personal_lockAccount
2018-12-13 17:27:52 +08:00
Peter Lai
28627c5ecf
Merge pull request #100 from soraclub/master
Add method: personal_lockAccount
2018-12-13 18:18:54 +09:00
sc0Vu
0d415ce360 Remove eth_getCompilers
Remove deprecated api: eth_getCompilers

See: https://github.com/ethereum/EIPs/issues/209
2018-12-12 16:46:58 +08:00
Peter Lai
01a70408ac
Merge pull request #106 from Arul-/patch-3
Fix for PHP Notice:  Undefined index: inputs in src/Contract.php:394
2018-12-12 00:09:06 +09:00
1099511627776
54e18048e3 Rename result to stream 2018-11-02 13:40:24 +02:00
1099511627776
70ac87df82 Close connection after stream read 2018-10-30 19:29:03 +02:00
Arul
0f1b9183b0
Fix for PHP Notice: Undefined index: inputs in src/Contract.php on line 394
When creating an instance of the contract with the new method, `$constructor['inputs']` is not available all the time, causing the above notice

This commit fixes it by checking it first
2018-09-04 21:04:39 +08:00
Andrei Mateescu
908d841bce
Don't send an empty "to" address when estimating gas for the constructor
Sending a empty "to" address when estimating the gas usage of the contract constructor returns the following error (from geth at least):

> invalid argument 0: hex string has length 0, want 40 for common.Address in
2018-08-23 08:31:18 +03:00
sinabs
1a9784da30 add code comments 2018-08-08 14:22:02 +08:00
sinabs
e5729b757c getTransactionReceipt result is NULL, Transaction status Pending
but RequestManage class throw 'Something wrong happened'
2018-08-08 12:52:09 +08:00
guanzi
16d341455d add method: personal_lockAccount 2018-08-01 19:32:44 +08:00
Kuan-Cheng,Lai
1fb7762eb7
Merge pull request #76 from sciku1/master
Added getToAddress
2018-06-24 22:45:20 +08:00
Kuan-Cheng,Lai
87dbe235a4
Merge pull request #87 from sc0Vu/fix-85
decodeParameters not work
2018-06-24 22:42:35 +08:00
sc0Vu
07f730d8ce Fix decode dynamic bytes
* Fix outputFormat function in dynamic bytes
* Add test test for issue 85 #85
2018-06-24 21:59:08 +08:00
sc0Vu
d5c21afec0 Fix decode bytes
* Return non zero bytes.
  Decode bytes1 data: 0x6300000000000000000000000000000000000000000000000000000000000000
  Will return 0x63
2018-06-24 21:16:12 +08:00
sc0Vu
ee9855fcbf
Change isType regex 2018-06-18 23:24:29 +08:00
Arul
3d8a567054
Fix: method validation in both send and call
Making sure method is a string and it exists under functions

I was trying to call a nonexistent method. Since I passed a string it went through without checking if it exists as a function or not

This commit fixes that by changing `&&` to `||` (or)
2018-06-07 18:02:08 +08:00
sc0Vu
9521b2d167 Check output name is empty 2018-05-28 15:21:18 +08:00
sc0Vu
4fd5d1ab67 Fix #83
Return $fractionLength when number is with decimal point.
2018-05-27 22:48:02 +08:00
Luiz Smelán
5a54ce5903
Fix: issue #71
- Not to limit the size of the string to 64 characters
2018-05-02 17:14:53 +01:00
Timothy Lopez
85dc060017 Added getToAddress 2018-04-27 18:20:06 -06:00
Pavel Rubin
f97d4c9397 Remove to parameter when publishing contract transaction 2018-04-03 07:04:47 +03: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
Dan
bbcaed31fe
add HttpRequestManager timeout params 2018-02-24 18:51:47 +08:00
sc0Vu
ed0a0ac70c Change transaction validator data field. 2018-02-22 16:55:53 +08:00
sc0Vu
f60aad9abf Transaction validator test. 2018-02-22 16:43:24 +08:00
sc0Vu
a1a707a966 Remove isError. 2018-02-22 16:27:56 +08:00
sc0Vu
073a5feaf8 Filter validator test. 2018-02-22 16:00:03 +08:00
sc0Vu
0e49a2b31e Call validator test. 2018-02-22 15:16:23 +08:00
sc0Vu
9d0f962189 Quantity validator test. 2018-02-22 14:57:47 +08:00
sc0Vu
e4b75305a3 Identity validator test. 2018-02-22 14:42:42 +08:00
sc0Vu
167844e5f8 Hex validator test. 2018-02-22 14:36:50 +08:00
sc0Vu
94d14ad6cb typo 2018-02-21 10:51:43 +08:00