Rococo allows ROC to be teleported from Tick, Trick and Track (#2872)

Also allows unpaid messages from them.
This commit is contained in:
Gavin Wood
2021-04-10 12:59:50 +02:00
committed by GitHub
parent 2c9a26e192
commit 025200fb25
2 changed files with 36 additions and 4 deletions
@@ -26,11 +26,10 @@ impl FilterAssetLocation for NativeAsset {
}
}
pub struct Case<T>(PhantomData<T>);
impl<T: Get<(MultiAsset, MultiLocation)>> FilterAssetLocation for Case<T> {
fn filter_asset_location(asset: &MultiAsset, origin: &MultiLocation) -> bool {
let (a, o) = T::get();
&a == asset && &o == origin
a.contains(asset) && &o == origin
}
}