-
Notifications
You must be signed in to change notification settings - Fork 690
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
update solochain to use #[runtime] #5772
Conversation
RuntimeCall, | ||
RuntimeEvent, | ||
RuntimeError, | ||
RuntimeOrigin, | ||
RuntimeFreezeReason, | ||
RuntimeHoldReason, | ||
RuntimeSlashReason, | ||
RuntimeLockId, | ||
RuntimeTask | ||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure the philosophy we want to follow, but the template does not need all these derives. i could see an argument to use it either way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pro reducing this, but I cannot find the documentation explaining what each does. My personal preference would be to exclude them, and explain in the template why we are excluding them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the type isnt being used anywhere in the file, you can pretty safely delete it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jan-Jan seems like the PR got merged without this being addressed. Looks like a good follow up. You can also look at the mock.rs
in the parachain template and fix this there too.
bot fmt |
@shawntabrizi https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7415672 was started for your command Comment |
@shawntabrizi Command |
Description
#[frame::runtime]
Template
instead ofTemplateModule
Integration
solochain
template and documentationReview Notes
solochain
template from construct_runtime! to #[runtime].Template
is our new convention, and preferred overTemplateModule
.Out of scope
#[crate::runtime]
with#[frame_support::runtime]