Commit ddfc04e
committed
#903: remove duplicated/contradictory doc block on admin() — replace
the double-entry (one claiming Panics, one claiming Errors) with a
single clean doc comment that accurately reflects the Result return.
#904: extend module-level Features list to mention simulate (dry-run),
fail_fast (abort on first optional failure), and max_total_gas (pre-
flight cumulative budget cap) — all core execute_batch behaviours that
were documented on the function but omitted from the crate overview.
#905: extract the 'budget_exceeded' and 'invoke_failed' string literals
into named constants FAILURE_REASON_BUDGET_EXCEEDED and
FAILURE_REASON_INVOKE_FAILED in router-common. Replace all inline
occurrences in execute_batch and the budget_failure_count test helper
so there is a single source of truth.
#906: build CallResult once per iteration. Store the value to ledger
before passing it to record_success/record_failure rather than
constructing an identical second struct literal for the store_results
path. CallResult already derives Clone; the second construction was
an unintentional copy-paste duplicate.
1 parent 21a5207 commit ddfc04e
2 files changed
Lines changed: 29 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
227 | 241 | | |
228 | 242 | | |
229 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
281 | 291 | | |
282 | 292 | | |
283 | 293 | | |
284 | 294 | | |
285 | 295 | | |
286 | 296 | | |
287 | | - | |
| 297 | + | |
288 | 298 | | |
289 | 299 | | |
290 | 300 | | |
291 | 301 | | |
292 | | - | |
| 302 | + | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
297 | 307 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 308 | | |
310 | 309 | | |
311 | 310 | | |
| |||
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | | - | |
| 439 | + | |
441 | 440 | | |
442 | 441 | | |
443 | 442 | | |
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | 447 | | |
454 | | - | |
| 448 | + | |
455 | 449 | | |
456 | 450 | | |
457 | 451 | | |
| |||
603 | 597 | | |
604 | 598 | | |
605 | 599 | | |
606 | | - | |
| 600 | + | |
607 | 601 | | |
608 | 602 | | |
609 | 603 | | |
| |||
0 commit comments