-
Notifications
You must be signed in to change notification settings - Fork 697
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
refactor: parachain template #4684
refactor: parachain template #4684
Conversation
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.
{ | ||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>}, | ||
TemplateModule: crate::{Pallet, Call, Storage, Event<T>}, | ||
pub enum Test { |
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.
pub enum Test { | |
pub struct Test { |
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.
@gupnik we can move all of this to the new syntax as well right?
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.
@gupnik we can move all of this to the new syntax as well right?
Yes! @Daanvdplas Do you want to give that a try? #1378 should help.
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.
Will finish this weekend
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.
It also compiled without experimental
feature, didn't run a local network with it though, added it because I saw it being used in other places.
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.
Yeah, runtime
macro is out of experimental
now.
a642271
to
768af06
Compare
FYI, with Pop CLI we are working on a feature |
@@ -22,7 +22,7 @@ scale-info = { version = "2.11.1", default-features = false, features = [ | |||
|
|||
# frame deps | |||
frame-benchmarking = { path = "../../../../substrate/frame/benchmarking", default-features = false, optional = true } | |||
frame-support = { path = "../../../../substrate/frame/support", default-features = false } | |||
frame-support = { path = "../../../../substrate/frame/support", default-features = false, features = ["experimental"] } |
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.
We should not add experimental stuff to the template. The point of it being that it is still experimental and subject to change.
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.
So revert the changes regarding construct runtime v2? @gupnik
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.
So revert the changes regarding construct runtime v2? @gupnik
It's not experimental anymore. You should be able to use it without that flag @Daanvdplas.
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.
Then we should not enable the experimental feature :P
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.
Apologies, I thought seeing it being used in the kitchen sink runtime but I think I had a bad dream. Thanks Kian
Should be good to go now |
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.
Looks nice!
7c847f8
Update parachain template pallet based on polkadot sdk docs @kianenigma --------- Co-authored-by: Kian Paimani <[email protected]>
Update parachain template pallet based on polkadot sdk docs
@kianenigma