From 2f9d0e77f9399ef6d4c274d216e981311e60c3d3 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:00:16 +0200 Subject: [PATCH] JS: add missing rewards field to ManaBalance (#2212) --- bindings/nodejs/CHANGELOG.md | 1 + bindings/nodejs/lib/types/wallet/wallet.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bindings/nodejs/CHANGELOG.md b/bindings/nodejs/CHANGELOG.md index 7a8cb85589..1fcfab4b05 100644 --- a/bindings/nodejs/CHANGELOG.md +++ b/bindings/nodejs/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - `Utils::blockWorkScore()`; +- `ManaBalance::rewards` field; ### Fixed diff --git a/bindings/nodejs/lib/types/wallet/wallet.ts b/bindings/nodejs/lib/types/wallet/wallet.ts index 5edc9d066d..ec7146eb97 100644 --- a/bindings/nodejs/lib/types/wallet/wallet.ts +++ b/bindings/nodejs/lib/types/wallet/wallet.ts @@ -70,6 +70,8 @@ export interface ManaBalance { total: DecayedMana; /** The mana of the outputs that isn't used in a transaction */ available: DecayedMana; + /** Mana rewards. */ + rewards: u64; } /** The required storage deposit per output type */