Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/genrl/blockchain/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ def setup_web3(url: str) -> Web3:
if web3.is_connected():
logger.info("✅ Connected to Gensyn Testnet")
else:
raise Exception("Failed to connect to Gensyn Testnet")
try:
web3.eth.block_number
logger.info("✅ Connected to Gensyn Testnet")
except Exception:
raise Exception("Failed to connect to Gensyn Testnet")
return web3


Expand Down