fix: 🐛 Added parenthesis
parent
e0c77d2a38
commit
3f2c60b00d
4
main.js
4
main.js
|
@ -59,11 +59,11 @@ module.exports = class Wallet {
|
||||||
|
|
||||||
// Get wallet synced height
|
// Get wallet synced height
|
||||||
async getHeight() {
|
async getHeight() {
|
||||||
return Number(await this.rpc('get_height').height)
|
return Number((await this.rpc('get_height')).height)
|
||||||
}
|
}
|
||||||
// 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')).balance)
|
||||||
}
|
}
|
||||||
// Save wallet
|
// Save wallet
|
||||||
async store() {
|
async store() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "monero-wallet-rpc-js",
|
"name": "monero-wallet-rpc-js",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"description": "Javascript wrapper for monero-wallet-rpc calls",
|
"description": "Javascript wrapper for monero-wallet-rpc calls",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue