Skip to content

Conversation

@clangenb
Copy link
Contributor

@clangenb clangenb commented Mar 9, 2024

Raffle Demo for the Sub0 Conference.

This is actually a very simple use case comprised of only one substrate-pallet and some boilerplate logic to integrate it and to create a CLI. Maybe we want to somewhat maintain it.

@clangenb clangenb marked this pull request as draft March 9, 2024 07:59
}

impl AddRaffleCmd {
pub(crate) fn run(&self, cli: &Cli, trusted_args: &TrustedCli) -> CliResult {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we easily see that if we make CLI and TrustedCli traits, and then put them into core, we can actually move all the raffle commands into applibs/raffle/cli without add the commands here, we only need one line of code then to add the commands to the overarching CLI.

@brenzi brenzi mentioned this pull request Oct 1, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants