diff options
Diffstat (limited to 'lib/rpc.js')
| -rw-r--r-- | lib/rpc.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,6 @@ import wretch from "./wretch.js"; -export default ({ host, port, wallet, user, password }) => +export default ({ host, port, wallet, username, password }) => new Proxy( {}, { @@ -9,7 +9,9 @@ export default ({ host, port, wallet, user, password }) => wretch() .url(`http://${host}:${port}/wallet/${wallet}`) .auth( - `Basic ${Buffer.from(`${user}:${password}`).toString("base64")}` + `Basic ${Buffer.from(`${username}:${password}`).toString( + "base64" + )}` ) .post({ method, |
