From 03693312288ee44e3f398eec68dee0bd8534d775 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sun, 21 Apr 2024 13:46:42 -0600 Subject: [PATCH] fix: :bug: Return whole balance object --- main.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index c3a7dd9..05f15b1 100644 --- a/main.js +++ b/main.js @@ -63,7 +63,7 @@ module.exports = class Wallet { } // Get wallet balance async getBalance() { - return Number((await this.rpc('get_balance')).balance) + return Number((await this.rpc('get_balance'))) } // Save wallet async store() { diff --git a/package.json b/package.json index 650c584..9c5c7cc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "monero-wallet-rpc-js", "type": "commonjs", - "version": "1.2.4", + "version": "1.2.5", "description": "Javascript wrapper for monero-wallet-rpc calls", "main": "main.js", "scripts": {