diff --git a/main.js b/main.js index d0d89a0..110fc9b 100644 --- a/main.js +++ b/main.js @@ -59,11 +59,11 @@ module.exports = class Wallet { // Get wallet synced height async getHeight() { - return await this.rpc('get_height') + return Number(await this.rpc('get_height').height) } // Get wallet balance async getBalance() { - return await this.rpc('get_balance') + return Number(await this.rpc('get_balance').balance) } // Save wallet async store() { diff --git a/package.json b/package.json index e3022ac..bf9383e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "monero-wallet-rpc-js", "type": "commonjs", - "version": "1.2.2", + "version": "1.2.3", "description": "Javascript wrapper for monero-wallet-rpc calls", "main": "main.js", "scripts": {