You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog].
4
4
5
5
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
6
6
7
+
## 0.16.0 (2025-11-26)
8
+
9
+
- Add a flag to `StorageInfo` which can be set in order to tell `frame-decode` to use the old version of V9 storage hashers when decoding storage keys. We need to manually toggle this flag when using metadata produced by runtimes prior to [this change](https://github.com/paritytech/substrate/commit/bbb363f4320b4a72e059c0fca96af42296d5a6bf#diff-aa7bc120d701816def0f2a5eb469212d2b7021d2fc9d3b284f843f3f8089e91a), which altered the storage hashers (and thus their encoding/decoding). Kusama prior to spec version 1032 is one such case when this needs to be toggled.
// See https://github.com/paritytech/substrate/commit/bbb363f4320b4a72e059c0fca96af42296d5a6bf#diff-aa7bc120d701816def0f2a5eb469212d2b7021d2fc9d3b284f843f3f8089e91a.
767
+
// We SCALE decode into the "new" variants seen there, but need to translate back to the old ones, which
/// Bytes representing the default value for this entry, if one exists.
141
141
pubdefault_value:Option<Cow<'info,[u8]>>,
142
+
/// Are we using V9 metadata prior to a change which added a new storage hasher?
143
+
///
144
+
/// See https://github.com/paritytech/substrate/commit/bbb363f4320b4a72e059c0fca96af42296d5a6bf#diff-aa7bc120d701816def0f2a5eb469212d2b7021d2fc9d3b284f843f3f8089e91a
145
+
/// Here a new hasher is added in the middle of the hashers enum. Thus, Metadata produced
146
+
/// by V9 runtimes prior to this change will not correctly decode into `frame-metadata`'s V9
147
+
/// which includes the change.
148
+
///
149
+
/// On Kusama for instance, this should be set to true when using metadata from any spec
150
+
/// version below 1032 in order to enable decoding correctly from it.
0 commit comments