Commit 881dfab
committed
fix: handle JSON array parameters intelligently for different RPC methods
- Fix getblock '[blockhash]' issue by extracting first element from JSON arrays
- Maintain backward compatibility for plain string parameters
- Support JSON arrays as-is for methods like logging and importdescriptors
- Extract only first element for single-parameter methods (getblock, getblockhash, gettransaction)
- Extract all elements for multi-parameter methods
- Fix malformed JSON patterns with escaped quotes1 parent 8449337 commit 881dfab
1 file changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 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 | + | |
58 | 84 | | |
59 | 85 | | |
60 | 86 | | |
| |||
0 commit comments