-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat: add genesis hash to injected accounts #236
feat: add genesis hash to injected accounts #236
Conversation
53df365
to
240b709
Compare
Hey. Thanks for taking the time to contribute. There is an issue I see the |
Hey @BeroBurny, for example, if the account has the "Kusama genesis hash" attached to it, DApp will know that the account can only sign Kusama transaction. Which is true for this snap because |
That will work if the user provide config, but in case there is no config provided value will be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @BeroBurny please take care of his comment
240b709
to
85fff72
Compare
Thanks for the review, I have made |
85fff72
to
31d62e7
Compare
DApp will use this to determine which network can the account be used with. This is especially important in this case, as accounts are always restricted to one network.
31d62e7
to
259590d
Compare
My bad seems I miscommunicated the issue. Let us begin with the basics,
So the So current solution to that falls on top of my head. |
Alright, thanks for the clarification, would you say option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, genesisHash as requirement for custom config 👍
68cf769
to
050398f
Compare
🤖 I have created a release *beep* *boop* --- <details><summary>metamask-polkadot-adapter: 0.8.0</summary> ## [0.8.0](metamask-polkadot-adapter-v0.7.0...metamask-polkadot-adapter-v0.8.0) (2024-07-03) ### Features * add genesis hash to injected accounts ([#236](#236)) ([bc73e6c](bc73e6c)) ### Bug Fixes * incorrect account type ([#237](#237)) ([ae02ce9](ae02ce9)) </details> <details><summary>metamask-polkadot-types: 0.9.0</summary> ## [0.9.0](metamask-polkadot-types-v0.8.0...metamask-polkadot-types-v0.9.0) (2024-07-03) ### Features * add genesis hash to injected accounts ([#236](#236)) ([bc73e6c](bc73e6c)) </details> <details><summary>polkadot-snap: 0.11.0</summary> ## [0.11.0](polkadot-snap-v0.10.0...polkadot-snap-v0.11.0) (2024-07-03) ### Features * add genesis hash to injected accounts ([#236](#236)) ([bc73e6c](bc73e6c)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
DApp will use this to determine which network can the account be used with. This is especially important in this case, as accounts are always restricted to one network.