Commit 46bd906
fix(rpc): review fixes — correct error codes, remove dead code, deduplicate
- Use `?` for resolve_block_id in eth endpoints so hash-not-found
returns -32001 instead of -32000
- Use `?` for cold storage errors so they route through #[from] impls
with sanitized "server error" messages instead of leaking internals
- Remove unused EvmRevert variants from DebugError and SignetError
- Add EthError::task_panic() to replace 20+ inline copies
- Fix resolve_error_code to be const fn (clippy)
- Map decode_2718 errors to InvalidParams (-32602) instead of Internal
- Remove tracked docs/ files from git, widen .gitignore to docs/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5f5a115 commit 46bd906
7 files changed
Lines changed: 78 additions & 1192 deletions
File tree
- crates/rpc/src
- debug
- eth
- signet
- docs/superpowers
- plans
- specs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
| |||
45 | 36 | | |
46 | 37 | | |
47 | 38 | | |
48 | | - | |
| 39 | + | |
49 | 40 | | |
50 | 41 | | |
51 | 42 | | |
52 | 43 | | |
53 | 44 | | |
54 | 45 | | |
55 | 46 | | |
56 | | - | |
57 | 47 | | |
58 | 48 | | |
59 | 49 | | |
| |||
64 | 54 | | |
65 | 55 | | |
66 | 56 | | |
67 | | - | |
68 | 57 | | |
69 | 58 | | |
70 | 59 | | |
71 | 60 | | |
72 | 61 | | |
73 | 62 | | |
74 | 63 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 64 | + | |
79 | 65 | | |
80 | 66 | | |
0 commit comments