Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.11.1] - 2024-03-22

- Fix a bug in the `PortableRegistry::retain()` method, where a type's id field was not adjusted to the new position of the type in the retained `Vec`.

## [2.11.0] - 2024-03-12

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scale-info"
version = "2.11.0"
version = "2.11.1"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
rust-version = "1.60.0"
Expand Down
1 change: 1 addition & 0 deletions src/portable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl PortableRegistry {

// Retain this type, having updated any inner IDs:
let new_id = new_types.len() as u32;
ty.id = new_id;
new_types.push(ty);
retained_mappings.insert(id, new_id);
new_id
Expand Down