Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update crowdloan.rs
  • Loading branch information
shawntabrizi committed Jan 22, 2021
commit 133fe83f65d86a58f5b0764f8a9eca5d8677867a
2 changes: 2 additions & 0 deletions runtime/common/src/crowdloan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ decl_module! {
) {
let owner = ensure_signed(origin)?;

// TODO: ensure this is the parachain manager. Needs Registrar Update.

ensure!(first_slot < last_slot, Error::<T>::LastSlotBeforeFirstSlot);
ensure!(last_slot <= first_slot + 3u32.into(), Error::<T>::LastSlotTooFarInFuture);
ensure!(end > <frame_system::Module<T>>::block_number(), Error::<T>::CannotEndInPast);
Expand Down