From 076f5c44facd53fb38ef01c9a2add379128e070f Mon Sep 17 00:00:00 2001 From: thiolliere Date: Wed, 28 Apr 2021 11:56:50 +0200 Subject: [PATCH] make custom on runtime upgrade prior to pallet ones --- frame/executive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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