Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes BX-1443
Figma link (if any):
What changed (plus any additional context for devs)
new method
migrate
is working fine but we were using it wrongly together with version number for state slicesfor rainbowChains we had version 7, with 6 migrations
migrate
applies the migration functions one by one removing the ones from 0 toversion
(.toSliced(0,version)`) so if you were in version 6, all of the migrations would be removed since the migrations were 6, so none of the migrations were being executedwe have to have this in mind for the next time we use this method
I updated
migrate
to accept any arbitrary number of elements in an array param since it was annoying to add a new interface for each element in the arrayScreen recordings / screenshots
What to test