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

Couple snap_manageAccounts to endowment:keyring #2798

Open
FrederikBolding opened this issue Oct 7, 2024 · 0 comments · May be fixed by #2869
Open

Couple snap_manageAccounts to endowment:keyring #2798

FrederikBolding opened this issue Oct 7, 2024 · 0 comments · May be fixed by #2869
Assignees

Comments

@FrederikBolding
Copy link
Member

FrederikBolding commented Oct 7, 2024

snap_manageAccounts is only supposed to be used by Snaps that implement the keyring API, thus we don't need two separate permissions for this.

We should figure out a way to make snap_manageAccounts not a permission anymore, but instead an RPC method gated by endowment:keyring. E.g.

if (!hasPermission(SnapEndowments.EthereumProvider)) {
return end(rpcErrors.methodNotFound());
}

This needs to be done in a backwards compatible way.

@GuillaumeRx GuillaumeRx self-assigned this Oct 31, 2024
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 a pull request may close this issue.

2 participants