Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86f8666

Browse files
committed
Using encrypted API key
1 parent 2a87c75 commit 86f8666

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_modules.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import json
22
from datetime import datetime
3+
import os
34
from unittest import TestCase
45

56
import requests
67

78
from etherscan.etherscan import Etherscan
89

910
CONFIG_PATH = "etherscan/configs/stable.json"
10-
API_KEY = requests.get(
11-
"https://jsonblob.com/api/7354bb23-0505-11eb-a3b7-a921883d52ea"
12-
).json()["key"]
11+
API_KEY = os.environ["API_KEY"] # Encrypted env var by Travis
1312

1413

1514
def load(fname):

0 commit comments

Comments
 (0)