Tweaks to XCM for Benchmarking (#4283)

* tweaks to xcm stuff for benchmarking

* Update xcm/xcm-executor/src/lib.rs
This commit is contained in:
Shawn Tabrizi
2021-11-15 17:38:11 -04:00
committed by GitHub
parent 08b8929c32
commit 59e90a77f0
7 changed files with 126 additions and 74 deletions
+6
View File
@@ -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> {