]> zoso.dev Git - libnemo.git/commitdiff
Fix wrong variable being returned from worker.
authorChris Duncan <chris@zoso.dev>
Sun, 1 Dec 2024 05:30:45 +0000 (21:30 -0800)
committerChris Duncan <chris@zoso.dev>
Sun, 1 Dec 2024 05:30:45 +0000 (21:30 -0800)
src/lib/workers/ckdBip44.ts

index bb7f380b402115c6b425a4d3ce034eaa4b47e0f8..99a8ed855532bc99647df19172ef41ae93435f7b 100644 (file)
@@ -18,7 +18,7 @@ const Bip44Ckd = () => {
        addEventListener('message', (message) => {
                const data = JSON.parse(new TextDecoder().decode(message.data ?? message))
                process(data).then(results => {
-                       const buf = new TextEncoder().encode(JSON.stringify(data)).buffer
+                       const buf = new TextEncoder().encode(JSON.stringify(results)).buffer
                        //@ts-expect-error
                        postMessage(buf, [buf])
                })