Skip to content
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

refactor: move LOCAL_NETWORK_NAME to utils #2335

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Oct 23, 2024

What I did

This avoid loading api modules before they are needed.
It is more likely utils are already loaded by this point so it is averagly better to import from here.
Also removed the import from registration as those files / logics need to be as fast as possible

All part of #2333
Trying to make the diff easier

How I did it

How to verify it

from ape.api.networks import LOCAL_NETWORK_NAME should still work btw so we dont break

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey merged commit 2ef3892 into ApeWorX:main Oct 23, 2024
16 checks passed
@antazoey antazoey deleted the refactor/local-net-const branch October 23, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants