mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
make custom on runtime upgrade prior to pallet ones (#8687)
This commit is contained in:
committed by
GitHub
parent
ffca28ba59
commit
9ca6abe9eb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user