fix: 🐛 Return promises duh

main
Keith Irwin 2024-04-22 12:14:17 -06:00
parent a51260a455
commit 0e8fb36388
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ module.exports = class Wallet {
// Open wallet
try {
this.rpc('open_wallet', {
await this.rpc('open_wallet', {
filename: settings.filename,
password: settings.password,
})
@ -15,7 +15,7 @@ module.exports = class Wallet {
// Create wallet
try {
this.rpc('generate_from_keys', {
await this.rpc('generate_from_keys', {
restore_height: settings.restoreHeight,
filename: settings.filename,
address: settings.address,
@ -32,7 +32,7 @@ module.exports = class Wallet {
// Refresh wallet
try {
this.rpc('refresh', {
await this.rpc('refresh', {
start_height: settings.restoreHeight || 0,
})
} catch (err) {

View File

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