]> zoso.dev Git - libnemo.git/commitdiff
Update remaining pending nomenclature.
authorChris Duncan <chris@zoso.dev>
Tue, 8 Oct 2024 07:13:00 +0000 (00:13 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 8 Oct 2024 07:13:00 +0000 (00:13 -0700)
src/lib/account.ts

index a4e23e6942ea3f099e1a041f60bd477a4f634c7c..80c358c14b9a28b1975068a9ebdd8c432ed6d9d3 100644 (file)
@@ -168,17 +168,17 @@ export class Account {
                }\r
                const data = {\r
                        "account": this.address,\r
-                       "pending": "true",\r
+                       "receivable": "true",\r
                        "representative": "true",\r
                        "weight": "true"\r
                }\r
-               const { balance, frontier, pending, representative, weight } = await node.call('account_info', data)\r
+               const { balance, frontier, receivable, representative, weight } = await node.call('account_info', data)\r
                if (frontier == null) {\r
                        throw new Error('Account not found')\r
                }\r
                this.#b = BigInt(balance)\r
                this.#f = frontier\r
-               this.#r = BigInt(pending)\r
+               this.#r = BigInt(receivable)\r
                this.#rep = new Account(representative)\r
                this.#w = BigInt(weight)\r
        }\r