diff --git a/src/build_upgrade.rs b/src/build_upgrade.rs index dd023df..82fcb80 100644 --- a/src/build_upgrade.rs +++ b/src/build_upgrade.rs @@ -502,27 +502,24 @@ async fn send_as_superuser_from_kusama(auth: &CallInfo) -> KusamaRuntimeCall { use kusama_relay::runtime_types::{ pallet_xcm::pallet::Call as XcmCall, sp_weights::weight_v2::Weight as KusamaWeight, - staging_xcm::v3::multilocation::MultiLocation, + staging_xcm::v4::{ + junction::Junction::Parachain, junctions::Junctions::X1, location::Location, + Instruction, Xcm, + }, xcm::{ - double_encoded::DoubleEncoded, - v2::OriginKind, - v3::{ - junction::Junction::Parachain, junctions::Junctions::X1, Instruction, WeightLimit, - Xcm, - }, - VersionedMultiLocation, - VersionedXcm::V3, + double_encoded::DoubleEncoded, v2::OriginKind, v3::WeightLimit, VersionedLocation, + VersionedXcm::V4, }, }; let (ref_time, proof_size) = get_weight(auth).await; let para_id = auth.network.get_para_id().unwrap(); KusamaRuntimeCall::XcmPallet(XcmCall::send { - dest: Box::new(VersionedMultiLocation::V3(MultiLocation { + dest: Box::new(VersionedLocation::V4(Location { parents: 0, - interior: X1(Parachain(para_id)), + interior: X1([Parachain(para_id)]), })), - message: Box::new(V3(Xcm(vec![ + message: Box::new(V4(Xcm(vec![ Instruction::UnpaidExecution { weight_limit: WeightLimit::Unlimited, check_origin: None, diff --git a/src/submit_referendum.rs b/src/submit_referendum.rs index 6cb962f..c242ee6 100644 --- a/src/submit_referendum.rs +++ b/src/submit_referendum.rs @@ -365,7 +365,7 @@ async fn polkadot_fellowship_referenda( // // let send_whitelist = CollectivesRuntimeCall::PolkadotXcm( // PolkadotXcmCall::send { - // dest: MultiLocation { parents: 1, interior: Here }, + // dest: Location { parents: 1, interior: Here }, // message: vec![UnpaidExecution, Transact {call: whitelist_call, ..}], // } // ); diff --git a/src/types.rs b/src/types.rs index f1ab086..b0b7b1f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -23,7 +23,7 @@ pub(super) use kusama_bridge_hub::runtime_types::bridge_hub_kusama_runtime::Runt #[subxt::subxt(runtime_metadata_insecure_url = "wss://kusama.api.encointer.org:443")] pub mod kusama_encointer {} -pub(super) use kusama_encointer::runtime_types::encointer_runtime::RuntimeCall as KusamaEncointerRuntimeCall; +pub(super) use kusama_encointer::runtime_types::encointer_kusama_runtime::RuntimeCall as KusamaEncointerRuntimeCall; #[subxt::subxt(runtime_metadata_insecure_url = "wss://kusama-coretime-rpc.polkadot.io:443")] pub mod kusama_coretime {}