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

Add context to snap_createInterface #2402

Closed
FrederikBolding opened this issue May 14, 2024 · 0 comments · Fixed by MetaMask/metamask-extension#24827
Closed

Add context to snap_createInterface #2402

FrederikBolding opened this issue May 14, 2024 · 0 comments · Fixed by MetaMask/metamask-extension#24827
Assignees
Labels
release-11.18.0 Issue or pull request that will be included in release 11.18.0

Comments

@FrederikBolding
Copy link
Member

No description provided.

@FrederikBolding FrederikBolding self-assigned this May 14, 2024
FrederikBolding added a commit that referenced this issue May 23, 2024
Add optional `context` parameter to `snap_createInterface`, this
`context` is stored in state and exposed to `onUserInput`, allowing for
storage of small amounts of data (1 MB to start) for use in UIs without
using `manageState`.

In the future we may consider allowing the Snap to modify this data
using `snap_updateInterface`, but this implementation doesn't do that.

Progresses #2402

---------

Co-authored-by: MetaMask Bot <[email protected]>
@metamaskbot metamaskbot added the release-11.18.0 Issue or pull request that will be included in release 11.18.0 label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-11.18.0 Issue or pull request that will be included in release 11.18.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants