Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update frame/support/procedural/src/pallet/expand/hooks.rs
Co-authored-by: Roman Useinov <[email protected]>
  • Loading branch information
bkchr and ruseinov authored Apr 28, 2023
commit 43ee1a09307e6ed1fce9060cb39a3484f1a759b5
2 changes: 1 addition & 1 deletion frame/support/procedural/src/pallet/expand/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn expand_hooks(def: &mut Def) -> proc_macro2::TokenStream {
while the pallet is missing the `#[pallet::storage_version(VERSION)]` attribute.",
);

return Err("On chain storage version set, while pallet doesn't \
return Err("On chain storage version set, while the pallet doesn't \
Copy link
Member

Choose a reason for hiding this comment

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

Just one nit: you could collect all those errors in a vector and return them at the end. Then we can debug multiple erroneous pallets at once, like in Rococo.

have the `#[pallet::storage_version(VERSION)]` attribute.");
}
}
Expand Down