Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Sep 27, 2023
1 parent 8288366 commit 8340107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update-kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function main() {
const kernelPath = 'wasm/extism-runtime.wasm'
const wasmContents = await fs.promises.readFile(kernelPath);
const kernelBase64 = wasmContents.toString('base64');
const kernelHash = await crypto.createHash('sha256').update(pluginContents).digest('hex');
const kernelHash = await crypto.createHash('sha256').update(wasmContents).digest('hex');

pluginContents = pluginContents.replace(/embeddedRuntime =\s*'.*'/, `embeddedRuntime =\n\t'${kernelBase64}'`);
pluginContents = pluginContents.replace(/embeddedRuntimeHash =\s*'.*''/, `embeddedRuntimeHash = '${kernelHash}'`);
Expand Down

0 comments on commit 8340107

Please sign in to comment.