diff --git a/substrate/frame/executive/src/lib.rs b/substrate/frame/executive/src/lib.rs index bc2783f76b5dfd4d0462d18dd5ce9584d143aa5b..36ad11360fd353d321fca35f2c078aad1aafe1b3 100644 --- a/substrate/frame/executive/src/lib.rs +++ b/substrate/frame/executive/src/lib.rs @@ -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