chore: 📝 Update documentation for async constructor
parent
afc930e3a4
commit
a51260a455
|
@ -7,7 +7,7 @@ import Wallet from 'monero-wallet-rpc-js'
|
||||||
|
|
||||||
// Load wallet
|
// Load wallet
|
||||||
let loadedWallet; try {
|
let loadedWallet; try {
|
||||||
loadedWallet = new Wallet({
|
loadedWallet = await new Wallet({
|
||||||
url: 'http://localhost:18082',
|
url: 'http://localhost:18082',
|
||||||
filename: 'mywallet',
|
filename: 'mywallet',
|
||||||
password: 'secretpassword',
|
password: 'secretpassword',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "monero-wallet-rpc-js",
|
"name": "monero-wallet-rpc-js",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "1.2.10",
|
"version": "1.2.11",
|
||||||
"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