fix: 🐛 Return whole balance object

main
Keith Irwin 2024-04-21 13:46:42 -06:00
parent ba9985ad2f
commit 0369331228
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ module.exports = class Wallet {
} }
// Get wallet balance // Get wallet balance
async getBalance() { async getBalance() {
return Number((await this.rpc('get_balance')).balance) return Number((await this.rpc('get_balance')))
} }
// Save wallet // Save wallet
async store() { async store() {

View File

@ -1,7 +1,7 @@
{ {
"name": "monero-wallet-rpc-js", "name": "monero-wallet-rpc-js",
"type": "commonjs", "type": "commonjs",
"version": "1.2.4", "version": "1.2.5",
"description": "Javascript wrapper for monero-wallet-rpc calls", "description": "Javascript wrapper for monero-wallet-rpc calls",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {