We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a4733c commit 4cf78e7Copy full SHA for 4cf78e7
packages/examples/packages/wasm/snap.manifest.json
@@ -7,7 +7,7 @@
7
"url": "https://github.com/MetaMask/snaps.git"
8
},
9
"source": {
10
- "shasum": "n/JVqBQfO2/1ojbBN1WFNddejGlTvGduO9VgxYGYQQg=",
+ "shasum": "YtnZetn37cq3RA2PdwjDBPOjvxDSAQ5vSzOqC2zjBNw=",
11
"location": {
12
"npm": {
13
"filePath": "dist/bundle.js",
packages/snaps-cli/src/webpack/loaders/wasm.ts
@@ -115,8 +115,7 @@ const loader: LoaderDefinitionFunction = async function loader(
115
}
116
117
const bytes = decode(b64);
118
- const module = await WebAssembly.compile(bytes);
119
- const instance = new WebAssembly.Instance(module, {
+ const { instance } = await WebAssembly.instantiate(bytes, {
120
${getModuleImports(imports)}
121
});
122
0 commit comments