fix: 🐛 Fix getBalance() call

main
Keith Irwin 2024-04-22 08:08:17 -06:00
parent 9e9b6569ad
commit 69c9b19c10
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(params) { async getBalance(params) {
return Number((await this.rpc('get_balance', params))) return await this.rpc('get_balance', params)
} }
// 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.8", "version": "1.2.9",
"description": "Javascript wrapper for monero-wallet-rpc calls", "description": "Javascript wrapper for monero-wallet-rpc calls",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {