Make System Parachains trusted Teleporters#1368
Conversation
|
bot fmt |
|
@NachoPal https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3539442 was started for your command Comment |
|
@NachoPal Command |
|
bot fmt |
|
@NachoPal https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3551152 was started for your command Comment |
|
@NachoPal Command |
|
Not sure if you also want to address #100 as well in this PR. |
You mean to do something like this? pub struct IsSiblingParachainAsset<SelfParaId>(sp_std::marker::PhantomData<SelfParaId>);
impl<SelfParaId: Get<ParaId>> ContainsPair<MultiAsset, MultiLocation>
for IsSiblingParachainAsset<SelfParaId>
{
fn contains(asset: &MultiAsset, origin: &MultiLocation) -> bool {
log::trace!(target: "xcm::contains", "IsSiblingParachainAsset asset: {:?}, origin: {:?}", asset, origin);
matches!(asset.id, Concrete(ref id) if <FromSiblingParachain<SelfParaId>>::contains(id, origin))
}
} |
|
@NachoPal Yes, I think that's about right. The idea is to cut away unnecessary type parameters. |
Ok, as |
…tytech/polkadot-sdk into nacho/make-system-paras-teleporters
|
bot fmt |
|
@NachoPal https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3968051 was started for your command Comment |
|
@NachoPal Command |
| pub use xcm_emulator::{assert_expected_events, bx, Chain, Parachain, TestExt}; | ||
|
|
||
| #[cfg(test)] | ||
| #[cfg(not(feature = "runtime-benchmarks"))] |
There was a problem hiding this comment.
why doesn't it work with runtime-benchmarks feature? AFAIK, we only run tests with the feature enabled in CI
There was a problem hiding this comment.
Thanks for noticing, it wasn't like that before: #1335
Make System Parachain trusted Teleporters of each other. Migration of paritytech/cumulus#2842 --------- Co-authored-by: command-bot <> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Make System Parachain trusted Teleporters of each other.
Migration of paritytech/cumulus#2842