git.delta.rocks / unique-network / refs/commits / e7be3173bff9

difftreelog

fix try-runtime support

Yaroslav Bolyukin2023-01-29parent: #38a301b.patch.diff
in: master

1 file changed

modifiedruntime/common/runtime_apis.rsdiffbeforeafterboth
819819
820 #[cfg(feature = "try-runtime")]820 #[cfg(feature = "try-runtime")]
821 impl frame_try_runtime::TryRuntime<Block> for Runtime {821 impl frame_try_runtime::TryRuntime<Block> for Runtime {
822 fn on_runtime_upgrade(checks: bool) -> (frame_support::pallet_prelude::Weight, frame_support::pallet_prelude::Weight) {822 fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (frame_support::pallet_prelude::Weight, frame_support::pallet_prelude::Weight) {
823 log::info!("try-runtime::on_runtime_upgrade unique-chain.");823 log::info!("try-runtime::on_runtime_upgrade unique-chain.");
824 let weight = Executive::try_runtime_upgrade(checks).unwrap();824 let weight = Executive::try_runtime_upgrade(checks).unwrap();
825 (weight, crate::config::substrate::RuntimeBlockWeights::get().max_block)825 (weight, crate::config::substrate::RuntimeBlockWeights::get().max_block)