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

Explicit Key Binding should support default hasher in dev_mode #14118

Closed
2 tasks done
gupnik opened this issue May 10, 2023 · 0 comments · Fixed by #14164
Closed
2 tasks done

Explicit Key Binding should support default hasher in dev_mode #14118

gupnik opened this issue May 10, 2023 · 0 comments · Fixed by #14164
Assignees
Labels
J0-enhancement An additional feature request.

Comments

@gupnik
Copy link
Contributor

gupnik commented May 10, 2023

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Motivation

How is the dev_mode syntax supposed to work with the explicit key binding in eg StorageMap?

I mean something like:

#[pallet::storage]
pub type Baz<T: Config> = StorageMap<Key = T::AccountId, Value = T::Balance>;

Request

Recently, we added the ability to specify hashers as _ in dev_mode, which are replaced by Blake2_128Concat. We should also be able to use a default hasher in dev_mode in case of explicit key binding.

Solution

No response

Are you willing to help with this request?

Yes!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant