Skip to content

Commit

Permalink
v0.2.7 upgrade remove sudo from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
decentration committed Mar 9, 2023
1 parent ca31af0 commit 390e9dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn testnet_genesis(
})
.collect(),
},
sudo: Default::default(),
// sudo: Default::default(),
// no need to pass anything to aura, in fact it will panic if we do. Session will take care
// of this.
aura: Default::default(),
Expand Down
6 changes: 3 additions & 3 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pallet-aura = { git = "https://github.com/paritytech/substrate", default-feature
pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
# pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.37" }
Expand Down Expand Up @@ -120,7 +120,7 @@ std = [
"pallet-collator-selection/std",
"pallet-identity/std",
"pallet-session/std",
"pallet-sudo/std",
# "pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
Expand Down Expand Up @@ -194,7 +194,7 @@ try-runtime = [
"pallet-balances/try-runtime",
"pallet-multisig/try-runtime",
"pallet-supersig/try-runtime",
"pallet-sudo/try-runtime",
# "pallet-sudo/try-runtime",
"pallet-scheduler/try-runtime",
"pallet-identity/try-runtime",
"pallet-utility/try-runtime",
Expand Down
10 changes: 5 additions & 5 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,10 @@ impl pallet_scheduler::Config for Runtime {
}

// No longer required going into live phase. Switch back on if necessary. Make sure to filter balances.
impl pallet_sudo::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
}
// impl pallet_sudo::Config for Runtime {
// type RuntimeEvent = RuntimeEvent;
// type RuntimeCall = RuntimeCall;
// }

// parameter_types! {
// pub const CouncilMotionDuration: BlockNumber = 5 * DAYS;
Expand Down Expand Up @@ -864,7 +864,7 @@ construct_runtime!(
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 3,

// Sudo
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 4,
// Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 4,

// Scheduler
Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event<T>} = 5,
Expand Down

0 comments on commit 390e9dc

Please sign in to comment.