Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

XCM emulator cannot handle networks defined on other crates #2987

Open
xlc opened this issue Aug 9, 2023 · 0 comments
Open

XCM emulator cannot handle networks defined on other crates #2987

xlc opened this issue Aug 9, 2023 · 0 comments

Comments

@xlc
Copy link
Contributor

xlc commented Aug 9, 2023

I want to reuse the networks defined in integration-tests-common in our own tests but getting this

error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate
   --> runtime/integration-tests/src/relaychain/kusama_test_net.rs:99:1
    |
99  | / decl_test_networks! {
100 | |     pub struct TestNet {
101 | |         relay_chain = KusamaNet,
    | |                       --------- `integration_tests_common::Kusama` is not defined in the current crate
102 | |         parachains = vec![
...   |
109 | |     }
110 | | }
    | |_^ impl doesn't use only types from inside the current crate

I want to avoid duplicate the networks defs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant