mirror of https://github.com/nucypher/nucypher.git
Improve handling of chainlist url string
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>pull/3569/head
parent
d2a4536612
commit
08359f4812
|
@ -54,4 +54,4 @@ POA_CHAINS = {
|
|||
80002, # "Polygon/Amoy"
|
||||
}
|
||||
|
||||
CHAINLIST_URL = "https://raw.githubusercontent.com/nucypher/chainlist/main/"
|
||||
CHAINLIST_URL = "https://raw.githubusercontent.com/nucypher/chainlist/main/{domain}.json"
|
||||
|
|
|
@ -140,7 +140,7 @@ def get_default_rpc_endpoints(domain) -> Dict[int, List[str]]:
|
|||
Fetches the default RPC endpoints for various chains
|
||||
from the nucypher/chainlist repository.
|
||||
"""
|
||||
url = CHAINLIST_URL + domain + ".json"
|
||||
url = CHAINLIST_URL.format(domain=domain)
|
||||
LOGGER.debug(f"Fetching default RPC endpoints from remote chainlist {url}")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue