aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rpc.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpc.js')
-rw-r--r--lib/rpc.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rpc.js b/lib/rpc.js
index ec2ff879..bb57d075 100644
--- a/lib/rpc.js
+++ b/lib/rpc.js
@@ -13,16 +13,16 @@ export default ({ host, port, wallet, username, password }) =>
.post(url, {
json: {
method,
- params
+ params,
},
headers: {
authorization: `Basic ${Buffer.from(
- `${username}:${password}`
- ).toString("base64")}`
- }
+ `${username}:${password}`,
+ ).toString("base64")}`,
+ },
})
.json()
.then(({ result }) => result);
- })(prop.toLowerCase(), ...params)
- }
+ })(prop.toLowerCase(), ...params),
+ },
);