Adds example for dev_mode and updates doc (#13944)

* Adds example for dev_mode and updates doc

* Addresses review comments

* Update frame/examples/dev-mode/src/lib.rs

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

* Addresses review comment

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
gupnik
2023-04-19 16:24:19 +05:30
committed by GitHub
parent bb394e08ac
commit e458bf3795
7 changed files with 320 additions and 0 deletions
@@ -465,6 +465,8 @@ pub fn construct_runtime(input: TokenStream) -> TokenStream {
/// * All storages are marked as unbounded, meaning you do not need to implement `MaxEncodedLen` on
/// storage types. This is equivalent to specifying `#[pallet::unbounded]` on all storage type
/// definitions.
/// * Storage hashers no longer need to be specified and can be replaced by `_`. In dev mode, these
/// will be replaced by `Blake2_128Concat`.
///
/// Note that the `dev_mode` argument can only be supplied to the `#[pallet]` or
/// `#[frame_support::pallet]` attribute macro that encloses your pallet module. This argument