pallet-scheduler: Check that when is not in the past (#6480)

* `pallet-scheduler`: Check that `when` is not in the past

* Break some lines
This commit is contained in:
Bastian Köcher
2020-06-23 17:25:19 +02:00
committed by GitHub
parent 2c9cadaf5d
commit db7f513766
2 changed files with 89 additions and 22 deletions
+1 -1
View File
@@ -1501,7 +1501,7 @@ pub mod schedule {
maybe_periodic: Option<Period<BlockNumber>>,
priority: Priority,
call: Call
) -> Self::Address;
) -> Result<Self::Address, DispatchError>;
/// Cancel a scheduled task. If periodic, then it will cancel all further instances of that,
/// also.