From 2aa37c4aa188aa1a5e306a759cb27fe8871c13a2 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 16 Aug 2022 15:13:06 +0000 Subject: [PATCH] fix: try-runtime build --- --- a/runtime/common/runtime_apis.rs +++ b/runtime/common/runtime_apis.rs @@ -717,13 +717,13 @@ #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { - fn on_runtime_upgrade() -> (Weight, Weight) { + fn on_runtime_upgrade() -> (frame_support::pallet_prelude::Weight, frame_support::pallet_prelude::Weight) { log::info!("try-runtime::on_runtime_upgrade unique-chain."); let weight = Executive::try_runtime_upgrade().unwrap(); - (weight, RuntimeBlockWeights::get().max_block) + (weight, crate::config::substrate::RuntimeBlockWeights::get().max_block) } - fn execute_block_no_check(block: Block) -> Weight { + fn execute_block_no_check(block: Block) -> frame_support::pallet_prelude::Weight { Executive::execute_block_no_check(block) } } -- gitstuff