]> git.codecow.com Git - libnemo.git/commitdiff
Add account version to account class.
authorChris Duncan <chris@codecow.com>
Sat, 8 Aug 2026 18:05:21 +0000 (11:05 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 8 Aug 2026 18:05:21 +0000 (11:05 -0700)
src/lib/account/index.ts

index 72c90ea34f295dd28714d0b041885daf3ed6625a..b72e0a9a520be7272a864e4ea0da2f878f31e93d 100644 (file)
@@ -40,6 +40,7 @@ export class Account {
        #receivable?: bigint\r
        #representative?: Account\r
        #representative_block?: string\r
+       #version?: number\r
        #weight?: bigint\r
 \r
        get publicKey (): string { return bytes.toHex(this.#publicKey) }\r
@@ -65,6 +66,7 @@ export class Account {
        get receivable (): bigint | undefined { return this.#receivable }\r
        get representative (): Account | undefined { return this.#representative }\r
        get representative_block (): string | undefined { return this.#representative_block }\r
+       get version (): number | undefined { return this.#version }\r
        get weight (): bigint | undefined { return this.#weight }\r
 \r
        set confirmed_balance (v: bigint | number | string) { this.#confirmed_balance = BigInt(v) }\r
@@ -98,6 +100,7 @@ export class Account {
                }\r
        }\r
        set representative_block (v: string | undefined) { this.#representative_block = v }\r
+       set version (v: bigint | number | string) { this.#version = Number(v) }\r
        set weight (v: bigint | number | string) { this.#weight = BigInt(v) }\r
 \r
        /**\r