Can not pass data from snap to dapp with await #2685
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
@pranavcpawar can you provide more details on what |
Beta Was this translation helpful? Give feedback.
-
|
Hey @pranavcpawar , I tried removing your I don't know why it works this way and not with a regular import. I will get back to you on that, but meanwhile I hope this can unblock you. |
Beta Was this translation helpful? Give feedback.
-
|
Since After making that change, I was able to run a Snap with |
Beta Was this translation helpful? Give feedback.

Since
libsodium-wrappersuses WebAssembly under the hood, you will need to request theendowment:webassemblypermission as part of yoursnap.manifest.json: https://docs.metamask.io/snaps/reference/permissions/#endowmentwebassemblyAfter making that change, I was able to run a Snap with
libsodium-wrappersimported.