mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
Tweaks to XCM for Benchmarking (#4283)
* tweaks to xcm stuff for benchmarking * Update xcm/xcm-executor/src/lib.rs
This commit is contained in:
@@ -1261,6 +1261,12 @@ pub mod pallet {
|
||||
VersionNotifyTargets::<T>::remove(XCM_VERSION, LatestVersionedMultiLocation(dest));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Return true if a location is subscribed to XCM version changes.
|
||||
fn is_subscribed(dest: &MultiLocation) -> bool {
|
||||
let versioned_dest = LatestVersionedMultiLocation(dest);
|
||||
VersionNotifyTargets::<T>::contains_key(XCM_VERSION, versioned_dest)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Config> DropAssets for Pallet<T> {
|
||||
|
||||
Reference in New Issue
Block a user