make custom on runtime upgrade prior to pallet ones (#8687)

This commit is contained in:
Guillaume Thiolliere
2021-05-03 10:57:25 +02:00
committed by GitHub
parent ffca28ba59
commit 9ca6abe9eb
+1 -1
View File
@@ -206,10 +206,10 @@ where
/// Execute all `OnRuntimeUpgrade` of this runtime, and return the aggregate weight.
pub fn execute_on_runtime_upgrade() -> frame_support::weights::Weight {
let mut weight = 0;
weight = weight.saturating_add(COnRuntimeUpgrade::on_runtime_upgrade());
weight = weight.saturating_add(
<frame_system::Pallet<System> as OnRuntimeUpgrade>::on_runtime_upgrade(),
);
weight = weight.saturating_add(COnRuntimeUpgrade::on_runtime_upgrade());
weight = weight.saturating_add(<AllPallets as OnRuntimeUpgrade>::on_runtime_upgrade());
weight