Commit 14cccd8
committed
fix: use Conditional with REVERT instead of invalid JUMPDEST
Replace the PUSH2(0x1000) + JUMPI pattern (which relied on jumping to an
invalid offset to trigger failure) with an explicit Conditional + REVERT.
This is cleaner, more explicit about error handling intent, and doesn't
rely on undefined behavior of invalid jump destinations.1 parent 341594c commit 14cccd8
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
225 | | - | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments