]> git.codecow.com Git - libnemo.git/commitdiff
Fix wallet signature output.
authorChris Duncan <chris@zoso.dev>
Thu, 7 Aug 2025 20:21:45 +0000 (13:21 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 7 Aug 2025 20:21:45 +0000 (13:21 -0700)
src/lib/wallet.ts

index 37ea751bccf25116cbec0528c37f037ec4add1a1..be76ffa8057caca4353e7d73baf5664631e39e58 100644 (file)
@@ -386,7 +386,7 @@ export class Wallet {
                        block.signature = bytes.toHex(sig)\r
                        clearTimeout(this.#lockTimer)\r
                        this.#lockTimer = setTimeout(() => this.lock(), 300000)\r
-                       return format === 'hex' ? sig : block.signature\r
+                       return format === 'hex' ? block.signature : sig\r
                } catch (err) {\r
                        throw new Error(`Failed to sign block`, { cause: err })\r
                }\r