From: Chris Duncan Date: Thu, 7 Aug 2025 20:21:45 +0000 (-0700) Subject: Fix wallet signature output. X-Git-Tag: v0.10.5~43^2~50 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f713a2acb27c3c14bfe1fdf790e71b6583b13105;p=libnemo.git Fix wallet signature output. --- diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index 37ea751..be76ffa 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -386,7 +386,7 @@ export class Wallet { block.signature = bytes.toHex(sig) clearTimeout(this.#lockTimer) this.#lockTimer = setTimeout(() => this.lock(), 300000) - return format === 'hex' ? sig : block.signature + return format === 'hex' ? block.signature : sig } catch (err) { throw new Error(`Failed to sign block`, { cause: err }) }