fix: 🐛 Added parenthesis

main
Keith Irwin 2024-04-21 13:18:25 -06:00
parent e0c77d2a38
commit 3f2c60b00d
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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": {