Commit Graph

392 Commits

Author SHA1 Message Date
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
Peter Lai
08956500b0
Merge pull request #127 from sc0Vu/fix-125
Fix #125
2018-12-21 00:09: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
Peter Lai
d579535485
Merge pull request #131 from sc0Vu/add-test
Add test for personal_lockAccount
2018-12-13 18:35:48 +09: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
Peter Lai
46708ab7b1
Merge pull request #130 from sc0Vu/update-docker
Update docker
2018-12-13 12:53:41 +09:00
sc0Vu
60bbb2c17a Update docker
Change:
* Add default configuration files.
* Update composer-setup.php.
* Remove composer-setup.php after intallation.
2018-12-13 11:18:48 +08:00
Peter Lai
77f20738aa
Merge pull request #108 from sunshuzhou/patch-1
Updata README.md
2018-12-12 19:22:27 +09:00
Peter Lai
fe5dc8ed63
Merge pull request #128 from sc0Vu/remove-get-compilers
Remove eth_getCompilers
2018-12-12 19:17:15 +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
Peter Lai
e7e04c542b
Merge pull request #105 from amateescu/patch-1
Don't send an empty "to" address when estimating gas for the constructor
2018-12-12 00:05:51 +09:00
Sun Shuzhou
c81e4ee4e5
Updata README.md
Fix typo
2018-09-19 11:45:46 +08: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
6d59d3d372 Test transaction result maybe null 2018-08-08 14:59:25 +08: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
234b1e695f Fix failed test on travis
* Change gas limt to 6000000
* Change ganache container compose file
2018-06-24 22:30:34 +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
ecafb1c5ec Fix BytesTypeTest and DynamicBytesTypeTest 2018-06-24 18:30:45 +08:00
sc0Vu
ee9855fcbf
Change isType regex 2018-06-18 23:24:29 +08:00
Kuan-Cheng,Lai
d0559b8c91
Merge pull request #91 from Arul-/patch-2
Fix: method validation in both send and call
2018-06-14 10:18:32 +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
Kuan-Cheng,Lai
be7403a00b
Merge pull request #89 from a10000005588/fix-personal-api-test
Change $e to $err
2018-06-04 11:23:28 +08:00
will
80c8c783ae Change $e to $err 2018-06-04 11:10:31 +08:00
sc0Vu
9521b2d167 Check output name is empty 2018-05-28 15:21:18 +08:00
Kuan-Cheng,Lai
5d04cec73f
Merge pull request #86 from sc0Vu/fix-83
Fix #83
2018-05-27 23:01:46 +08:00
sc0Vu
4fd5d1ab67 Fix #83
Return $fractionLength when number is with decimal point.
2018-05-27 22:48:02 +08:00
sc0Vu
4eaebd48aa Add test for issue 71 2018-05-18 12:03:27 +08:00
Kuan-Cheng,Lai
831d2ebdbe
Merge pull request #77 from lsmelan/lsmelan-patch-1
Fix: issue #71
2018-05-18 12:01:26 +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
sc0Vu
02be3f815d Add ganache container
Add ganache container
Update 'README.md'
2018-04-25 10:25:09 +08:00
sc0Vu
233379966b Merge branch 'fix-62' 2018-04-25 10:09:04 +08:00
sc0Vu
a87010fc4c Add test
Add test for toHex(48), thanks @refear99
2018-04-25 10:07:06 +08:00
sc0Vu
fa95650437 Update composer.json 2018-04-25 10:06:30 +08:00
sc0Vu
6100a046c5 Update 'README.md' 2018-04-14 15:01:45 +08:00
Kuan-Cheng,Lai
00817ee6b9
Merge pull request #60 from pash7ka/dev-patch-new-contract
Remove `to` parameter when publishing contract transaction
2018-04-08 22:41:32 +08:00
Pavel Rubin
f97d4c9397 Remove to parameter when publishing contract transaction 2018-04-03 07:04:47 +03:00
Kuan-Cheng,Lai
4df0835f2b
Merge pull request #58 from sc0Vu/specify-package-version
Specify package version
2018-03-31 10:34:15 +08:00
sc0Vu
a2a68dd516 Fix undefined pow function in phpseclib 2.0 2018-03-31 10:28:45 +08:00