From: Chris Duncan Date: Tue, 8 Oct 2024 07:13:00 +0000 (-0700) Subject: Update remaining pending nomenclature. X-Git-Tag: v0.0.4~1 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=56a3bdb68005c922549500305494eff1d6ebbf55;p=libnemo.git Update remaining pending nomenclature. --- diff --git a/src/lib/account.ts b/src/lib/account.ts index a4e23e6..80c358c 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -168,17 +168,17 @@ export class Account { } const data = { "account": this.address, - "pending": "true", + "receivable": "true", "representative": "true", "weight": "true" } - const { balance, frontier, pending, representative, weight } = await node.call('account_info', data) + const { balance, frontier, receivable, representative, weight } = await node.call('account_info', data) if (frontier == null) { throw new Error('Account not found') } this.#b = BigInt(balance) this.#f = frontier - this.#r = BigInt(pending) + this.#r = BigInt(receivable) this.#rep = new Account(representative) this.#w = BigInt(weight) }