-
Notifications
You must be signed in to change notification settings - Fork 506
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
How do I opt in (or implement) the "Native H160 via AccountId20" strategy? #1470
Comments
I am also interested in this one |
Nice question. You can check out our configuration at https://github.com/darwinia-network/darwinia/blob/main/core/primitives/src/lib.rs#L33-L37. Since there are already several projects based on Frontier that have been running for a long time, feel free to search and test by yourself. |
@boundless-forest I can see that you have I guess my real question is, why isn't there some kind of global struct with an associated type where the AccountId type is configurable for all other pallets to derive their behavior from...? What't the idea here? Also why is there a I'm assuming there is some fundamental knowledge that I'm missing about polkadot-sdk that I just don't understand yet. Would help if someone could enlighten me. |
I believe |
In the /docs/accounts.md it states the following:
The second strategy consists of using
fp-account
so thatAccountId20
is the Account type used forframe_system::pallet::Config::AccountId
.How can someone opt in to this strategy?
Where in code does it have to be changed?
Some guidance would help tremendously for someone new to substrate and would like to get started quickly.
I'd be more than happy to create a PR with detailed explanation of this once I have understood how this works so following devs can make their switch quickly.
Many thanks.
The text was updated successfully, but these errors were encountered: