Skip to content

Commit 3e75b81

Browse files
authored
fix glif token not being sent (#69)
1 parent 36709fd commit 3e75b81

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/constants.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@ export const SPARK_VERSION = '1.11.2'
22
export const MAX_CAR_SIZE = 200 * 1024 * 1024 // 200 MB
33
export const APPROX_ROUND_LENGTH_IN_MS = 20 * 60_000 // 20 minutes
44

5-
export const RPC_REQUEST = new Request('https://api.node.glif.io/', {
6-
headers: {
7-
authorization: 'Bearer Bz8B9c8hKIp+/IyePpgORexkDDq+8c9atapgGuudtQ0='
8-
}
9-
})
5+
export const RPC_REQUEST = new Request('https://api.node.glif.io/')

lib/miner-info.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ async function rpc (method, ...params) {
2323
method: 'POST',
2424
headers: {
2525
'content-type': 'application/json',
26-
accepts: 'application/json'
26+
accepts: 'application/json',
27+
authorization: 'Bearer Bz8B9c8hKIp+/IyePpgORexkDDq+8c9atapgGuudtQ0='
2728
},
2829
body: JSON.stringify({
2930
jsonrpc: '2.0',

0 commit comments

Comments
 (0)