fix: 🐛 Return whole balance object
parent
ba9985ad2f
commit
0369331228
2
main.js
2
main.js
|
@ -63,7 +63,7 @@ module.exports = class Wallet {
|
|||
}
|
||||
// Get wallet balance
|
||||
async getBalance() {
|
||||
return Number((await this.rpc('get_balance')).balance)
|
||||
return Number((await this.rpc('get_balance')))
|
||||
}
|
||||
// Save wallet
|
||||
async store() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "monero-wallet-rpc-js",
|
||||
"type": "commonjs",
|
||||
"version": "1.2.4",
|
||||
"version": "1.2.5",
|
||||
"description": "Javascript wrapper for monero-wallet-rpc calls",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue