-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
cumulus/parachains/integration-tests/emulated/assets/asset-hub-rococo/src/tests/mod.rs
Outdated
Show resolved
Hide resolved
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 |
...parachains/integration-tests/emulated/collectives/collectives-polkadot/src/tests/teleport.rs
Outdated
Show resolved
Hide resolved
cumulus/parachains/integration-tests/emulated/common/src/macros.rs
Outdated
Show resolved
Hide resolved
…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 |
cumulus/parachains/integration-tests/emulated/assets/asset-hub-westend/src/tests/teleport.rs
Outdated
Show resolved
Hide resolved
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
Make System Parachain trusted Teleporters of each other.
Migration of paritytech/cumulus#2842