Adds ability to use default hasher in dev_mode for explicit key binding (#14164)

* Initial setup

* Minor update

* Minor update

* Addresses review comments

* Addresses review comments

* Updates doc

* ".git/.scripts/commands/fmt/fmt.sh"

* Renames file

* Updates path in test

---------

Co-authored-by: command-bot <>
This commit is contained in:
gupnik
2023-05-19 18:54:32 +05:30
committed by GitHub
parent 580efaec85
commit 958f4aaa38
5 changed files with 82 additions and 12 deletions
@@ -468,7 +468,8 @@ pub fn construct_runtime(input: TokenStream) -> TokenStream {
/// 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`.
/// will be replaced by `Blake2_128Concat`. In case of explicit key-binding, `Hasher` can simply
/// be ignored when in `dev_mode`.
///
/// 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