Skip to content

Commit

Permalink
Merge pull request #3 from tomrpl/feat/mainnet-naming
Browse files Browse the repository at this point in the history
feat(mainnet): uniformizing naming
  • Loading branch information
yvesbou authored Dec 10, 2024
2 parents 26dcfde + 3a6aded commit 9d8c4e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion src/get_platform_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/get_rpc_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d8c4e7

Please sign in to comment.