]> git.codecow.com Git - libnemo.git/commitdiff
Fix block private key account proxy.
authorChris Duncan <chris@zoso.dev>
Fri, 18 Jul 2025 07:07:16 +0000 (00:07 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 18 Jul 2025 07:07:16 +0000 (00:07 -0700)
src/lib/block.ts

index 57e032b11bea1eca3bf686bd909ba85dbdf4dcf3..092b32b3abc095f2194dd0219aecfbcb7286bbe6 100644 (file)
@@ -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) {