Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pallet-maintenance-mode: fix compilation with no default features #3

Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions pallets/maintenance-mode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ pub mod pallet {
// Write to storage
MaintenanceMode::<T>::put(true);
// Suspend XCM execution
#[cfg(feature = "xcm-support")]
if let Err(error) = T::XcmExecutionManager::suspend_xcm_execution() {
<Pallet<T>>::deposit_event(Event::FailedToSuspendIdleXcmExecution { error });
}
Expand Down Expand Up @@ -202,6 +203,7 @@ pub mod pallet {
// Write to storage
MaintenanceMode::<T>::put(false);
// Resume XCM execution
#[cfg(feature = "xcm-support")]
if let Err(error) = T::XcmExecutionManager::resume_xcm_execution() {
<Pallet<T>>::deposit_event(Event::FailedToResumeIdleXcmExecution { error });
}
Expand Down
192 changes: 0 additions & 192 deletions pallets/migrations/src/democracy_preimages.rs

This file was deleted.

Loading