Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Add missing CountedStorageMap in pallet::storage error info (#12356)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu authored Sep 27, 2022
1 parent 94b9646 commit 2ee4cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frame/support/procedural/src/pallet/parse/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ fn process_generics(
found => {
let msg = format!(
"Invalid pallet::storage, expected ident: `StorageValue` or \
`StorageMap` or `StorageDoubleMap` or `StorageNMap` in order to expand metadata, \
found `{}`.",
`StorageMap` or `CountedStorageMap` or `StorageDoubleMap` or `StorageNMap` \
in order to expand metadata, found `{}`.",
found,
);
return Err(syn::Error::new(segment.ident.span(), msg))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: Invalid pallet::storage, expected ident: `StorageValue` or `StorageMap` or `StorageDoubleMap` or `StorageNMap` in order to expand metadata, found `u8`.
error: Invalid pallet::storage, expected ident: `StorageValue` or `StorageMap` or `CountedStorageMap` or `StorageDoubleMap` or `StorageNMap` in order to expand metadata, found `u8`.
--> $DIR/storage_not_storage_type.rs:19:16
|
19 | type Foo<T> = u8;
Expand Down

0 comments on commit 2ee4cb4

Please sign in to comment.