This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
storage_key_iter does return invalid second keys for StorageDoubleMap #11416
Labels
J2-unconfirmed
Issue might be valid, but it’s not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
When using storage_key_iter on a StorageDoubleMap with a ReversibleStorageHasher other than Identity, the second keys that are returned contain wrong values.
I am not quite sure if
storage_key_iter
was ever designed to be used withStorageDoubleMaps
. In that case, a note in the documentation is crucial, otherwise devs might mess up their storage by assuming that it will work.Steps to reproduce
I created a repository that contains a rust crate with a minimal example and three tests that can be used as a reference.
i32
, the value should beu32
(-12, -34) = 56
The text was updated successfully, but these errors were encountered: