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

Set migration user to Multilocation #338

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

JuaniRios
Copy link
Contributor

@JuaniRios JuaniRios commented Jun 25, 2024

What?

  • Set the user field of a migration item to a MultiLocation instead of a [u8; 32]

Why?

So we can handle more account types, like Ethereum with AccountId20

How?

For now we hardcode the migrations with Multilocation(0, X1(AccountId32))

Copy link
Contributor Author

JuaniRios commented Jun 25, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JuaniRios and the rest of your teammates on Graphite Graphite

@JuaniRios JuaniRios marked this pull request as ready for review June 25, 2024 10:21
Copy link

graphite-app bot commented Jun 25, 2024

Graphite Automations

"Auto-assign PRs to author" took an action on this PR • (06/25/24)

1 assignee was added to this PR based on Juan Ignacio Rios's automation.

@JuaniRios JuaniRios requested a review from vstam1 June 25, 2024 10:26
Copy link
Collaborator

@vstam1 vstam1 left a comment

Choose a reason for hiding this comment

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

I think it looks good in general. Only thing I'm thinking about is how to work with the different xcm versions. XCMv4 is of course now created, and I think most of the XCM types have changed a bit (not sure about their encoding though). But if we are storing them as XCMv3 now, we might need to do a migration when we move to XCMv4 (or 5)

pallets/polimec-receiver/src/lib.rs Outdated Show resolved Hide resolved
polimec-common/common/src/lib.rs Outdated Show resolved Hide resolved
pallets/funding/src/functions/6_settlement.rs Show resolved Hide resolved
@JuaniRios
Copy link
Contributor Author

@vstam1 good point, but I think the migration should be fairly trivial no?

@JuaniRios JuaniRios force-pushed the 06-25-set_migration_user_to_multilocation branch from b122521 to 1b1c897 Compare June 26, 2024 08:00
@JuaniRios JuaniRios requested a review from vstam1 June 26, 2024 08:00
@JuaniRios JuaniRios force-pushed the 06-25-set_migration_user_to_multilocation branch from 1b1c897 to 3f99a8f Compare June 26, 2024 09:02
@JuaniRios JuaniRios merged commit b284b15 into main Jun 27, 2024
@JuaniRios JuaniRios deleted the 06-25-set_migration_user_to_multilocation branch June 27, 2024 11:53
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