From: Chris Duncan Date: Fri, 18 Jul 2025 07:07:16 +0000 (-0700) Subject: Fix block private key account proxy. X-Git-Tag: v0.10.5~56^2~3 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=990588c965accf18a742c9be386badde55610024;p=libnemo.git Fix block private key account proxy. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index 57e032b..092b32b 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -141,7 +141,7 @@ abstract class Block { } else { try { const account = (typeof input === 'string') - ? await Account.import({ privateKey: input }, '') + ? await Account.import({ index: 0, privateKey: input }, '') : this.account this.signature = await account.sign(this, '') } catch (err) {