Skip to content

Conversation

meppsilon
Copy link

I added a simple permission for wallet_getLanguage. I wasn't sure how detailed and specific we should make this permission but I see a possible improvement: converting LanguageResult to a enum-like data type where we specify exactly what languages would be returned instead of a returning it as a general "string" type.

@shanejonas
Copy link
Contributor

Looks good, you also need to add the method as a $ref in this file: https://github.com/MetaMask/api-specs/blob/main/metamask-openrpc.json#L7

@meppsilon meppsilon marked this pull request as ready for review April 14, 2022 16:01
@meppsilon meppsilon requested a review from a team as a code owner April 14, 2022 16:01
@meppsilon meppsilon changed the title Add permission method for wallet_getLanguage Add permission method for wallet_getLocale Apr 19, 2022
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