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

XCM emulator cannot handle networks defined on other crates #2987

@xlc

Description

@xlc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions