Skip to content

Commit

Permalink
add assert and revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Nov 13, 2024
1 parent 13971ea commit 5191e64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)

NETWORK_STRING = ENV.get("NETWORK", "mainnet")
NODE_URL = os.getenv("NODE_URL")
NODE_URL = ENV.get("NODE_URL")
NETWORK = {
"mainnet": EthereumNetwork.MAINNET,
"gnosis": EthereumNetwork.GNOSIS,
Expand Down
2 changes: 2 additions & 0 deletions src/fetch/transfer_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def auto_propose(
# Check for required env vars early
# so not to wait for query execution to realize it's not available.
signing_key = os.environ["PROPOSER_PK"]

assert NODE_URL is not None, "NODE_URL env variable not set!"
client = EthereumClient(URI(NODE_URL))

log_saver.print(Transfer.summarize(transfers), category=Category.TOTALS)
Expand Down

0 comments on commit 5191e64

Please sign in to comment.