From 3a6aded6a8ad1de52dc0ab0d34634fd17f2ca1d5 Mon Sep 17 00:00:00 2001 From: Reppelin Tom Date: Wed, 27 Nov 2024 17:03:55 +0100 Subject: [PATCH] feat(mainnet): uniformizing naming --- .env.example | 2 +- src/get_platform_key.py | 2 +- src/get_rpc_url.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index cefb9ce..465399c 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,6 @@ ETHERSCAN_API_KEY=xxx OPTIMISTIC_ETHERSCAN_API_KEY=xxx BASE_ETHERSCAN_API_KEY=xxx -MAINNETRPC="https://mainnet.infura.io/v3/xxx" +MAINNET_RPC="https://mainnet.infura.io/v3/xxx" OPTIMISTIC_RPC="https://optimism-mainnet.infura.io/v3/xxx" BASE_RPC="https://base-mainnet.g.alchemy.com/v2/xxx" \ No newline at end of file diff --git a/src/get_platform_key.py b/src/get_platform_key.py index e3e4be7..31467cc 100644 --- a/src/get_platform_key.py +++ b/src/get_platform_key.py @@ -2,7 +2,7 @@ def get_platform_key(network: str) -> str: rpc_urls = { - "mainet": os.getenv("ETHERSCAN_API_KEY"), + "mainnet": os.getenv("ETHERSCAN_API_KEY"), "optim": os.getenv("OPTIMISTIC_ETHERSCAN_API_KEY"), "base": os.getenv("BASE_ETHERSCAN_API_KEY"), # Add more networks as needed diff --git a/src/get_rpc_url.py b/src/get_rpc_url.py index 15bcca3..69ec02b 100644 --- a/src/get_rpc_url.py +++ b/src/get_rpc_url.py @@ -2,7 +2,7 @@ def get_rpc_url(network: str) -> str: rpc_urls = { - "mainet": os.getenv("MAINNET_RPC"), + "mainnet": os.getenv("MAINNET_RPC"), "optim": os.getenv("OPTIMISTIC_RPC"), "base": os.getenv("BASE_RPC"), # Add more networks as needed