mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 10:41:01 +00:00
Add missing CountedStorageMap in pallet::storage error info (#12356)
This commit is contained in:
@@ -555,8 +555,8 @@ fn process_generics(
|
|||||||
found => {
|
found => {
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"Invalid pallet::storage, expected ident: `StorageValue` or \
|
"Invalid pallet::storage, expected ident: `StorageValue` or \
|
||||||
`StorageMap` or `StorageDoubleMap` or `StorageNMap` in order to expand metadata, \
|
`StorageMap` or `CountedStorageMap` or `StorageDoubleMap` or `StorageNMap` \
|
||||||
found `{}`.",
|
in order to expand metadata, found `{}`.",
|
||||||
found,
|
found,
|
||||||
);
|
);
|
||||||
return Err(syn::Error::new(segment.ident.span(), msg))
|
return Err(syn::Error::new(segment.ident.span(), msg))
|
||||||
|
|||||||
@@ -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
|
--> $DIR/storage_not_storage_type.rs:19:16
|
||||||
|
|
|
|
||||||
19 | type Foo<T> = u8;
|
19 | type Foo<T> = u8;
|
||||||
|
|||||||
Reference in New Issue
Block a user