Skip to content
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

Allow fudge::companion struct to be generic #68

Open
lemunozm opened this issue Oct 11, 2023 · 0 comments
Open

Allow fudge::companion struct to be generic #68

lemunozm opened this issue Oct 11, 2023 · 0 comments
Labels
I8-enhancement An additional feature. Q5-hard Can be done by an experienced coder with a good knowledge of the codebase.

Comments

@lemunozm
Copy link
Contributor

Support generics in fudge::companion structs, as follows:

#[fudge::companion]
pub struct TestEnv <T> {
    #[fudge::relaychain]
    pub relay: RelaychainBuilder<T, ...>,

    #[fudge::parachain(2000)]
    pub parachain: ParachainBuilder<T, ...>,
}

This allows to create different TestEnv for different runtimes easier.

@lemunozm lemunozm added Q5-hard Can be done by an experienced coder with a good knowledge of the codebase. I8-enhancement An additional feature. labels Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I8-enhancement An additional feature. Q5-hard Can be done by an experienced coder with a good knowledge of the codebase.
Projects
None yet
Development

No branches or pull requests

1 participant