Skip to content

Commit

Permalink
Move snap message (MetaMask#1294)
Browse files Browse the repository at this point in the history
* move snap message

* Update data-storage.md

* active voice and move note

* changed meaning

* Update snaps/features/data-storage.md

Co-authored-by: Alexandra Tran Carrillo <[email protected]>

---------

Co-authored-by: Christian Montoya <[email protected]>
Co-authored-by: Alexandra Tran Carrillo <[email protected]>
  • Loading branch information
3 people authored May 2, 2024
1 parent 67fbd19 commit 0fea9df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions snaps/features/data-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Use the [`snap_manageState`](../reference/snaps-api.md#snap_managestate) API met
100 MB of data to the user's disk and retrieve it at will.
We recommend using this method for storing data in a Snap long term.

:::caution important
Snaps are installed in each user's MetaMask instance.
If a Snap stores data, that data is specific to that user's MetaMask instance.
However, this data can be shared across multiple dapps.
Do not assume that the data a Snap stores is unique to a single dapp unless it is specifically designed to be that way.
:::

## Steps

### 1. Get permission to store data
Expand Down
7 changes: 0 additions & 7 deletions snaps/how-to/connect-to-a-snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@ with the following shape:
If the Snap is already installed, the call to `wallet_requestSnaps` returns the same object as for a
new installation of the Snap, but the user won't see a confirmation pop-up asking them to install the Snap.
:::caution important
Snaps are installed into the MetaMask instance of each user.
If a Snap stores data, that data is specific to that user's MetaMask instance.
However, that data can be shared with multiple dapps.
Do not assume that data stored by a Snap is unique to your dapp.
:::
## Determine whether a Snap is installed
Determine whether a Snap is installed by calling the
Expand Down

0 comments on commit 0fea9df

Please sign in to comment.