Commit cc60f05
authored
configurable eth_call accepted errors (#1264)
* make accepted error codes from mirror node for eth_call configurable and added initial default ones
Signed-off-by: Alfredo Gutierrez <[email protected]>
* fixed test
Signed-off-by: Alfredo Gutierrez <[email protected]>
* Added more logs and returned error instead of 0x when request to mirror node returns null
Signed-off-by: Alfredo Gutierrez <[email protected]>
* Removed returning CONTRACT_REVERT when returning null and indeed returning 0x when receiving null from the mirror node.
Signed-off-by: Alfredo Gutierrez <[email protected]>
* fixed acceptance test that were failing
Signed-off-by: Alfredo Gutierrez <[email protected]>
* fake push
Signed-off-by: Alfredo Gutierrez <[email protected]>
* PR Review suggestions=: Removed leftover comments, added unit test for handleError class and improved modified test to make sure the sdk was not called.
Signed-off-by: Alfredo Gutierrez <[email protected]>
* removed leftover comment
Signed-off-by: Alfredo Gutierrez <[email protected]>
* removed leftover comment
Signed-off-by: Alfredo Gutierrez <[email protected]>
---------
Signed-off-by: Alfredo Gutierrez <[email protected]>1 parent a429072 commit cc60f05
File tree
6 files changed
+60
-41
lines changed- packages
- relay
- src/lib
- clients
- tests/lib
- server/tests/acceptance
- htsPrecompile
6 files changed
+60
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
| |||
297 | 304 | | |
298 | 305 | | |
299 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
300 | 310 | | |
301 | 311 | | |
302 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
1166 | | - | |
| 1166 | + | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3389 | 3389 | | |
3390 | 3390 | | |
3391 | 3391 | | |
3392 | | - | |
3393 | | - | |
3394 | | - | |
3395 | | - | |
3396 | | - | |
3397 | | - | |
3398 | | - | |
3399 | | - | |
| 3392 | + | |
3400 | 3393 | | |
3401 | | - | |
3402 | | - | |
3403 | | - | |
| 3394 | + | |
| 3395 | + | |
3404 | 3396 | | |
3405 | 3397 | | |
3406 | 3398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
58 | 90 | | |
59 | 91 | | |
60 | 92 | | |
| |||
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 741 | + | |
| 742 | + | |
747 | 743 | | |
748 | 744 | | |
| 745 | + | |
749 | 746 | | |
750 | 747 | | |
751 | 748 | | |
| |||
754 | 751 | | |
755 | 752 | | |
756 | 753 | | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
| 754 | + | |
| 755 | + | |
763 | 756 | | |
764 | 757 | | |
765 | 758 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
| 352 | + | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
| 427 | + | |
| 428 | + | |
431 | 429 | | |
432 | 430 | | |
433 | 431 | | |
| |||
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
| 439 | + | |
| 440 | + | |
446 | 441 | | |
447 | 442 | | |
448 | 443 | | |
| |||
590 | 585 | | |
591 | 586 | | |
592 | 587 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
| 588 | + | |
| 589 | + | |
598 | 590 | | |
599 | 591 | | |
600 | 592 | | |
| |||
0 commit comments