-
Notifications
You must be signed in to change notification settings - Fork 829
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
title: 'Fix: [Referenda Tracks] Resolve representation issues that are breaking PJS apps' | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: |- | ||
The PR #2072 introduces a change in the representation of the `name` field, from a `&str` to a `[u8; N]` array. This is because | ||
tracks can be retrieves from storage, and thus, a static string representation doesn't meet with the storage traits requirements. | ||
|
||
This PR encapsulates this array into a `StringLike` structure that allows representing the value as a `str` for SCALE and metadata | ||
purposes. This is to avoid breaking changes. | ||
|
||
This PR also reverts the representation of the `Tracks` constant as a tuple of `(TrackId, TrackInfo)` to accomplish the same | ||
purpose of avoid breaking changes to runtime users and clients. | ||
crates: | ||
- name: pallet-referenda | ||
bump: minor | ||
- name: collectives-westend-runtime | ||
bump: minor | ||
- name: kitchensink-runtime | ||
bump: minor | ||
- name: rococo-runtime | ||
bump: minor | ||
- name: westend-runtime | ||
bump: minor |