-
Notifications
You must be signed in to change notification settings - Fork 13
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
The right way to use Multiaddress
#225
Comments
I see in the present Frontier template the Address is set: pub type Address = sp_runtime::MultiAddress<AccountId, ()>; and in the EVM pallet config:
Are you looking to convert the latter to use the MultiAddress type? If so, this could look much closer to the https://docs.moonbeam.network/learn/unified-accounts/ structure for users, where the conversions/mappings could be done "under the hood" for users. |
MultiAddress is just an encoding format. It means that you can use the first two bytes of the encoded To use it, you basically just stick a match statement wherever you use this type. like this:
So in any pallet where you use Stuff like that. |
https://substrate.stackexchange.com/ could be a good place to resurface some of this for some rep 😁 |
Although paritytech/substrate#7380 has been merged for a long time, I found there are few docs that talks about how to use this feature. Some questions I have:
@shawntabrizi Maybe you can help me.
The text was updated successfully, but these errors were encountered: