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

migration for hold identifier #253

Merged
merged 5 commits into from
Sep 7, 2023
Merged

Conversation

girazoki
Copy link
Collaborator

@girazoki girazoki commented Sep 7, 2023

Migrates hold identifier from [u8; 8] to a proper enum holdReason

@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

Master coverage: 74.46%
Coverage generated "Thu Sep 7 11:29:27 UTC 2023":
https://d3gkbsry1ehhqi.cloudfront.net/tanssi-coverage/pulls/253/index.html
Pull coverage: 74.52%

for (account_id, holds) in stored_data {
let mut new_holds = vec![];

for hold in holds {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would that turn all holds into PooledStake holds? No other pallets perform holds?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we only have one hold type yes. The problem if I evaluate the hold type is that I still need to convert the rest of the hold identifiers to something and that something right now is only PooledStake

@girazoki girazoki merged commit c4ef7c4 into master Sep 7, 2023
22 checks passed
@girazoki girazoki deleted the girazoki-mirate-currency-hold-reason branch September 7, 2023 12:37
girazoki added a commit that referenced this pull request Sep 7, 2023
* migration for hold identifier

* clean warning

* tests

* updated interfaces
rimbi pushed a commit to rimbi/tanssi that referenced this pull request Oct 17, 2023
* migration for hold identifier

* clean warning

* tests

* updated interfaces
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