Skip to content

Commit a0e15f7

Browse files
authored
Remove process env dependency (#883)
* Remove process env dependency * Update package.json
1 parent a2db2c0 commit a0e15f7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snapshot-labs/snapshot.js",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"repository": "snapshot-labs/snapshot.js",
55
"license": "MIT",
66
"main": "dist/snapshot.cjs.js",

src/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ export const SNAPSHOT_SUBGRAPH_URL = delegationSubgraphs;
3131
const ENS_RESOLVER_ABI = [
3232
'function text(bytes32 node, string calldata key) external view returns (string memory)'
3333
];
34-
const SCORE_API_KEY = process?.env?.KEYCARD_SECRET || '';
3534

3635
const scoreApiHeaders = {
3736
Accept: 'application/json',
3837
'Content-Type': 'application/json'
3938
};
40-
if (SCORE_API_KEY) scoreApiHeaders['X-API-KEY'] = SCORE_API_KEY;
4139

4240
const ajv = new Ajv({ allErrors: true, allowUnionTypes: true, $data: true });
4341
// @ts-ignore

0 commit comments

Comments
 (0)