Skip to content

Can not pass data from snap to dapp with await #2685

Discussion options

You must be logged in to vote

Since libsodium-wrappers uses WebAssembly under the hood, you will need to request the endowment:webassembly permission as part of your snap.manifest.json: https://docs.metamask.io/snaps/reference/permissions/#endowmentwebassembly

After making that change, I was able to run a Snap with libsodium-wrappers imported.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@pranavcpawar
Comment options

@Mrtenz
Comment options

@ziad-saab
Comment options

@pranavcpawar
Comment options

@pranavcpawar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FrederikBolding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants