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

Charity pallet information missing #452

Open
herou opened this issue Jul 11, 2021 · 1 comment
Open

Charity pallet information missing #452

herou opened this issue Jul 11, 2021 · 1 comment

Comments

@herou
Copy link
Contributor

herou commented Jul 11, 2021

I copied and pasted the pallets/charity into another node in order to use it and I was having this issue:

elioprifti@Elios-MacBook-Air substrate-node-template % cargo run -- --dev --tmp
warning: /Users/elioprifti/substrate-node-template/Cargo.toml: unused manifest key: workspace.librocksdb-sys
   Compiling node-template v3.0.0 (/Users/elioprifti/substrate-node-template/node)
error[E0063]: missing field `charity` in initializer of `GenesisConfig`
   --> node/src/chain_spec.rs:136:2
    |
136 |     GenesisConfig {
    |     ^^^^^^^^^^^^^ missing `charity`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0063`.
error: could not compile `node-template`

To learn more, run the command again with --verbose.
elioprifti@Elios-MacBook-Air substrate-node-template % 

I had to add this charity: Some(Default::default()), line of code inside GenesisConfig brackets to make charity pallet working.
I think we should include information in recipes documentation that some pallets need to be initialized from Genesis.

Reply to this issue with some hints and let me create a PR for this missing information.

Thank you!
@JoshOrndorff

@JoshOrndorff
Copy link
Owner

My recommendation is to add a new recipe specifically about the genesis config. Then if you think it is a good idea, you can add a sentence like this to charity and any other recipes that need it.

This pallet uses a [genesis config]. If you are installing this in a new chain, you will need to configure its genesis. Learn more about that in the recipe on [genesis configs]

Or something similar.

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

No branches or pull requests

2 participants