-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add info logger to display connection status and chain ID #2268
Conversation
Im writing the test atm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the logic is off!
my suggestion: add a logger line to ape_test/provider.py
instead
@@ -1075,7 +1089,12 @@ def start(self, timeout: int = 20): | |||
with RPCTimeoutError(self, seconds=timeout) as _timeout: | |||
while True: | |||
if self.is_connected: | |||
break | |||
chain_id = self.chain_id # Ensure this is how chain_id is accessed | |||
if chain_id == 1337: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The chain ID is configurable and does not mean it is an Ethereum tester node. Any node can use this port!
This pull request is considered stale because it has been open 30 days with no activity. Remove stale label, add a comment, or make a new commit, otherwise this PR will be closed in 5 days. |
This PR was closed because it has been inactive for 35 days. |
What I did
How I did it
Modify the start method in the provider to include additional logging.
after confirming the provider is connected, the method checks the chain_id. If the chain_id is 1337, it logs a message indicating a connection to a local test chain.
How to verify it
Checklist