diff --git a/frame/executive/src/lib.rs b/frame/executive/src/lib.rs index bc2783f76b5df..36ad11360fd35 100644 --- a/frame/executive/src/lib.rs +++ b/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( as OnRuntimeUpgrade>::on_runtime_upgrade(), ); - weight = weight.saturating_add(COnRuntimeUpgrade::on_runtime_upgrade()); weight = weight.saturating_add(::on_runtime_upgrade()); weight