fix: need to setup wasm state before calling getNextBytes

This commit is contained in:
Derrick Hammer 2023-06-24 03:34:53 -04:00
parent cb4048b963
commit 0cbb09b247
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -44,11 +44,11 @@ export async function getVerifiableStream(
});
};
await getNextBytes();
// @ts-ignore
const wasmId = callExports("start");
getWasmProperty(wasmId, "set_root")(root);
getWasmProperty(wasmId, "set_proof")(proof);
await getNextBytes();
return new ReadableStream({
async pull(controller) {