Commit Graph

425 Commits

Author SHA1 Message Date
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
sc0Vu
04e9c14f5e Specify package version
1. Remove dev minimum stability
2. kornrunner/keccak ~1.0
3. phpseclib/phpseclib ~2.0
2018-03-31 10:26:29 +08:00
sc0Vu
5ede0c03e6 return to exit 2018-03-19 10:13:00 +08:00
sc0Vu
209baec4b7 Return test script status. 2018-03-19 10:08:58 +08:00
sc0Vu
378e1ec906 Fix test script. 2018-03-18 21:50:16 +08:00
sc0Vu
706d0a77a0 Add HttpProvider test. 2018-03-18 20:24:22 +08:00
Kuan-Cheng,Lai
475dd8d5b1
Merge pull request #55 from sc0Vu/fix-53
Fix #53
2018-03-05 17:40:31 +08:00
sc0Vu
507b1d89e6 Fix 53
toWei support fraction/float number.
2018-03-05 17:32:19 +08:00
Kuan-Cheng,Lai
b10680cddb
Merge pull request #54 from sc0Vu/fix-toBn
Fix to bn
2018-03-05 17:05:46 +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
Kuan-Cheng,Lai
4df36f155b
Merge pull request #51 from a-komarev/patch-1
Update code styling in README
2018-02-25 21:44:35 +08:00
Anton Komarev
3d134fba8e
Update code styling in README 2018-02-25 15:34:02 +03:00
Kuan-Cheng,Lai
d02fb14bd3
Merge pull request #50 from refear99/timeout_params
add HttpRequestManager timeout params
2018-02-25 13:13:21 +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