Skip to content

Change type id to new type id in PortableRegistry::retain().#204

Merged
jsdw merged 3 commits intomasterfrom
tadeohepperle/fix-type-id-in-retain
Mar 22, 2024
Merged

Change type id to new type id in PortableRegistry::retain().#204
jsdw merged 3 commits intomasterfrom
tadeohepperle/fix-type-id-in-retain

Conversation

@tadeohepperle
Copy link
Copy Markdown
Contributor

@tadeohepperle tadeohepperle commented Mar 22, 2024

The type's id should be set to the new id to reflect the correct position in the Vec holding the types of the PortableRegistry.

See the comment of @jsdw here: paritytech/scale-typegen#23 (comment)

Copy link
Copy Markdown
Contributor

@jsdw jsdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small thing; this was missed in our retain tests before, so could we tweak the tests to make sure this works too? :)

@jsdw jsdw merged commit 938790b into master Mar 22, 2024
@jsdw jsdw deleted the tadeohepperle/fix-type-id-in-retain branch March 22, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants