pallet macro: allow to declare individual unbounded storage for those who cannot go into PoV (#9670)

* allow unbounded individual storage

* better doc

* fix UI tests

* update doc

* Update frame/support/procedural/src/pallet/parse/storage.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Guillaume ThiolliereandKian Paimani authored and GitHub committed 2021-09-27 08:25:24 +00:00
1 parent d565382b50
commit 1ebcbe1c34
7 files changed
+106 -44

No files matched your search

@@ -1,4 +1,4 @@
error: expected `getter` or `storage_prefix`
error: expected one of: `getter`, `storage_prefix`, `unbounded`
--> $DIR/storage_invalid_attribute.rs:16:12
|
16 | #[pallet::generate_store(pub trait Store)]
@@ -1,4 +1,4 @@
error: Invalid pallet::storage, multiple argument pallet::getter found
error: Invalid attribute: Duplicate attribute
--> $DIR/storage_multiple_getters.rs:20:3
|
20 | #[pallet::getter(fn foo_error)]
@@ -1,4 +1,4 @@
error: Invalid pallet::storage, multiple argument pallet::storage_prefix found
error: Invalid attribute: Duplicate attribute
--> $DIR/storage_multiple_renames.rs:20:3
|
20 | #[pallet::storage_prefix = "Baz"]