diff options
| author | Adam Soltys <[email protected]> | 2023-12-19 14:37:18 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-20 14:39:08 -0800 |
| commit | b67ca07bac3a0cb78f9b3c19a783c3253f06c29f (patch) | |
| tree | 1664d33bd1c514d016a7a1983af257197d4e5ac7 /lib/rpc.js | |
| parent | 337ca8c555f188d64c9f065972d443377adf042f (diff) | |
| download | coinos-server-b67ca07bac3a0cb78f9b3c19a783c3253f06c29f.tar.gz coinos-server-b67ca07bac3a0cb78f9b3c19a783c3253f06c29f.zip | |
biome
Diffstat (limited to 'lib/rpc.js')
| -rw-r--r-- | lib/rpc.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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), + }, ); |
