-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Migrate pallet-template to pallet attribute macro #7981
Migrate pallet-template to pallet attribute macro #7981
Conversation
#[pallet::storage] | ||
#[pallet::getter(fn something)] | ||
// Learn more about declaring storage items: | ||
// https://substrate.dev/docs/en/knowledgebase/runtime/storage#declaring-storage-items |
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.
You are mixing here spaces and tabs.
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.
Fixed the indentations.
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.
thanks, looks good to me, would be greate to also make use of construct_runtime in the tests instead of impl_out_* but we can do in another PR
Thanks, I will convert the tests as well in a separate PR. |
Part of #7882.
Migrates the
Template
pallet in node-template to the new attribute macro's. Tried to keep the documentation as is.Because it is a template ea example pallet I don't think there are storage changes to think of. If needed I can help with modifying the tutorials if needed and when this is pushed to substrate-developers-hub.
@thiolliere