File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ access(all) contract FlowYieldVaultsEVMWorkerOps {
311311 cancelledIds .append (schedulerTransactionId )
312312 }
313313 // Clear cached scheduler pointer to avoid stale transaction ID after cancellation.
314- schedulerHandler .nextSchedulerTransactionId = nil
314+ schedulerHandler .clearNextSchedulerTransactionId ()
315315
316316 emit AllExecutionsStopped (
317317 cancelledIds : cancelledIds ,
@@ -725,6 +725,12 @@ access(all) contract FlowYieldVaultsEVMWorkerOps {
725725 )
726726 }
727727
728+ /// @notice Clears the cached next scheduler transaction ID
729+ /// @dev Used by Admin.stopAll() after cancelling scheduler execution
730+ access (contract ) fun clearNextSchedulerTransactionId () {
731+ self .nextSchedulerTransactionId = nil
732+ }
733+
728734 /// @notice Helper function to schedule a transaction for the SchedulerHandler
729735 /// @dev This function is used for both recurrent scheduling and WorkerHandler scheduling
730736 /// @param manager The scheduler manager
You can’t perform that action at this time.
0 commit comments