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

Feat/remove sudo #185

Merged
merged 8 commits into from
Mar 11, 2024
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
feat: add RemovePallet migration
  • Loading branch information
lrazovic committed Mar 11, 2024
commit 9ee00aec0a373b01993b87f54087e70ad6c99d4d
10 changes: 2 additions & 8 deletions runtimes/base/src/lib.rs
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ pub mod migrations {

use super::*;
/// Unreleased migrations. Add new ones here:
pub type Unreleased = ();
pub type Unreleased = (RemovePallet<Sudo, ParityDbWeight>,);
}

/// Executive: handles dispatch to the various modules.
@@ -444,12 +444,6 @@ impl pallet_aura::Config for Runtime {
type MaxAuthorities = MaxAuthorities;
}

impl pallet_sudo::Config for Runtime {
type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
}

pub struct ToTreasury;

impl tokens::imbalance::OnUnbalanced<CreditOf<Runtime>> for ToTreasury {
@@ -848,7 +842,7 @@ construct_runtime!(
ParachainSystem: cumulus_pallet_parachain_system = 1,
Timestamp: pallet_timestamp = 2,
ParachainInfo: parachain_info = 3,
Sudo: pallet_sudo = 4,
// Index 4 used to be Sudo
Utility: pallet_utility::{Pallet, Call, Event} = 5,
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 6,
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 7,