Commit 3cfe56f
authored
fix: contract method types should allow any param if abi type not supplied (web3#6688)
* Fix default contractor and method input parameter
Previously type was [] (zero element tuple) instead of any[] which prevented passing parameters if contract aby type was not defined.
* better solution + test
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
* improve test
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
* remove expect error directives
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
* remove extra line
---------
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>1 parent 762c298 commit 3cfe56f
File tree
3 files changed
+20
-4
lines changed- packages/web3-eth-contract
- src
- test
- integration/local_account
- unit
3 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
28 | 46 | | |
29 | 47 | | |
30 | 48 | | |
| |||
0 commit comments