diff --git a/src/verify.ts b/src/verify.ts index 64bc896..cc7fe0c 100644 --- a/src/verify.ts +++ b/src/verify.ts @@ -74,9 +74,9 @@ export async function getVerifiableStream( const result = getWasmProperty(wasmId, "result"); - const wasmDone = result === undefined; + const wasmDone = result !== undefined; - if (result === undefined) { + if (!wasmDone) { await getNextBytes(); }