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

[AHM] Improve accounts migration #550

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Jan 17, 2025

Meant to be merged into dev-asset-hub-migration branch.

Some improvements and fixes to the accounts migration.

<T as Config>::Currency::thaw(&freeze.id, &who)
// TODO: handle error
.unwrap();
if let Err(e) = <T as Config>::Currency::thaw(&freeze.id, &who) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if let Err(e) = <T as Config>::Currency::thaw(&freeze.id, &who) {
if let Err(e) = <T as Config>::Currency::thaw(&freeze.id, &who).defensive() {

Then it also fails the test directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there is actually defensive one level up if this function return an error

@muharem muharem force-pushed the muharem-ahm-refine-accounts branch from 55b71ef to eb0daaa Compare January 17, 2025 13:20
@ggwpez ggwpez marked this pull request as ready for review January 17, 2025 15:05
@ggwpez ggwpez merged commit 5f2b139 into polkadot-fellows:dev-asset-hub-migration Jan 17, 2025
27 of 52 checks passed
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