Commit 8ad3e07
authored
refactor: improve operation scheduling logic in ExecutorBase (#4436)
### Description
Refactored the `_validateAndConsumeSchedule` function in `ExecutorBase.sol` to improve clarity and fix a logical issue with operation scheduling.
### Changes
- Simplified conditional logic for unauthorized calls
- Fixed a bug where operations with delay would execute without being scheduled
- Added explicit check for unscheduled operations that require delay
- Improved handling of scheduled operations by checking the schedule timepoint once
- Separated the conditions for consuming scheduled operations from delay enforcement
### Checklist
- [ ] Tests added where required
- [ ] Documentation updated where applicable
- [ ] Changes adhere to the repository's contribution guidelines1 parent f09d570 commit 8ad3e07
File tree
1 file changed
+6
-9
lines changed- packages/contracts/src/spaces/facets/executor
1 file changed
+6
-9
lines changedLines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
| 463 | + | |
467 | 464 | | |
468 | 465 | | |
| 466 | + | |
469 | 467 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
475 | 472 | | |
476 | 473 | | |
477 | 474 | | |
| |||
0 commit comments