From 3f2c60b00d0aa1b282e8e1412bcdb6bca4909e87 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sun, 21 Apr 2024 13:18:25 -0600 Subject: [PATCH] fix: :bug: Added parenthesis --- main.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 110fc9b..c3a7dd9 100644 --- a/main.js +++ b/main.js @@ -59,11 +59,11 @@ module.exports = class Wallet { // Get wallet synced height async getHeight() { - return Number(await this.rpc('get_height').height) + return Number((await this.rpc('get_height')).height) } // Get wallet balance async getBalance() { - return Number(await this.rpc('get_balance').balance) + return Number((await this.rpc('get_balance')).balance) } // Save wallet async store() { diff --git a/package.json b/package.json index bf9383e..650c584 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "monero-wallet-rpc-js", "type": "commonjs", - "version": "1.2.3", + "version": "1.2.4", "description": "Javascript wrapper for monero-wallet-rpc calls", "main": "main.js", "scripts": {