From 69c9b19c1031f48a751c786a887ed4045ce8421f Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 22 Apr 2024 08:08:17 -0600 Subject: [PATCH] fix: :bug: Fix getBalance() call --- main.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index c0623fb..4112fa7 100644 --- a/main.js +++ b/main.js @@ -63,7 +63,7 @@ module.exports = class Wallet { } // Get wallet balance async getBalance(params) { - return Number((await this.rpc('get_balance', params))) + return await this.rpc('get_balance', params) } // Save wallet async store() { diff --git a/package.json b/package.json index 3cd4bef..876bf87 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "monero-wallet-rpc-js", "type": "commonjs", - "version": "1.2.8", + "version": "1.2.9", "description": "Javascript wrapper for monero-wallet-rpc calls", "main": "main.js", "scripts": {