From 68032840d6ac0e7e3d41ada4de8ab1cea5f7df3e Mon Sep 17 00:00:00 2001 From: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Date: Sat, 8 Jun 2024 20:14:31 +0200 Subject: [PATCH] Use `authorize_upgrade` (#27) * kusama * fmt * polkadot * people too --- src/build_upgrade.rs | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/src/build_upgrade.rs b/src/build_upgrade.rs index 845a39e..8204412 100644 --- a/src/build_upgrade.rs +++ b/src/build_upgrade.rs @@ -281,7 +281,7 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec continue, // do relay chain separately Network::KusamaAssetHub => { - use kusama_asset_hub::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use kusama_asset_hub::runtime_types::frame_system::pallet::Call; let path = format!( "{}asset-hub-kusama_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -291,15 +291,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use kusama_bridge_hub::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use kusama_bridge_hub::runtime_types::frame_system::pallet::Call; let path = format!( "{}bridge-hub-kusama_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -309,15 +308,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use kusama_people::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use kusama_people::runtime_types::frame_system::pallet::Call; let path = format!( "{}people-kusama_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -327,15 +325,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use kusama_coretime::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use kusama_coretime::runtime_types::frame_system::pallet::Call; let path = format!( "{}coretime-kusama_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -345,15 +342,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use kusama_encointer::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use kusama_encointer::runtime_types::frame_system::pallet::Call; let path = format!( "{}encointer-kusama_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -363,15 +359,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use polkadot_asset_hub::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use polkadot_asset_hub::runtime_types::frame_system::pallet::Call; let path = format!( "{}asset-hub-polkadot_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -381,15 +376,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use polkadot_collectives::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use polkadot_collectives::runtime_types::frame_system::pallet::Call; let path = format!( "{}collectives-polkadot_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -399,15 +393,14 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec { - use polkadot_bridge_hub::runtime_types::cumulus_pallet_parachain_system::pallet::Call; + use polkadot_bridge_hub::runtime_types::frame_system::pallet::Call; let path = format!( "{}bridge-hub-polkadot_runtime-v{}.compact.compressed.wasm", upgrade_details.directory, runtime_version @@ -417,9 +410,8 @@ fn generate_authorize_upgrade_calls(upgrade_details: &UpgradeDetails) -> Vec