Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce refactoring to split TrieRefcountChange to TrieRefcountAddition/Subtraction #10080

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

robin-near
Copy link
Contributor

Previous change #10006 caused an issue because it made the borsh encoding of TrieRefcountSubtraction incompatible. This change makes it compatible by ignoring the value field when deserializing, and when serializing outputs an empty vector. Also adds a test to check that the previous encoding is compatible with the new one.

@robin-near robin-near requested a review from wacban November 2, 2023 16:40
@robin-near robin-near requested a review from a team as a code owner November 2, 2023 16:40
Copy link
Member

@posvyatokum posvyatokum left a comment

Choose a reason for hiding this comment

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

Thanks for the test and for making it work without db migration!

@robin-near robin-near added this pull request to the merge queue Nov 2, 2023
Merged via the queue into near:master with commit 3fcd356 Nov 2, 2023
8 of 9 checks passed
@robin-near robin-near deleted the borsh branch November 2, 2023 19:08
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.

2 participants