Update Substrate & Polkadot (#375)

* Update Substrate & Polkadot

* Remove `can_set_code` for now
This commit is contained in:
Bastian Köcher
2021-03-23 15:54:40 +01:00
committed by GitHub
parent 4ad027079f
commit 4d680a5107
5 changed files with 322 additions and 244 deletions
+2 -3
View File
@@ -142,7 +142,6 @@ decl_module! {
#[weight = (0, DispatchClass::Operational)]
pub fn schedule_upgrade(origin, validation_function: Vec<u8>) {
ensure_root(origin)?;
<frame_system::Module<T>>::can_set_code(&validation_function)?;
Self::schedule_upgrade_impl(validation_function)?;
}
@@ -909,8 +908,8 @@ mod tests {
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Module, Call, Config, Storage, Event<T>},
ParachainSystem: parachain_system::{Module, Call, Storage, Event},
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
ParachainSystem: parachain_system::{Pallet, Call, Storage, Event},
}
);