-
Notifications
You must be signed in to change notification settings - Fork 51
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
added nicknames to envs #266
Conversation
boa/environment.py
Outdated
self.evm = PyEVM(self, fast_mode_enabled, fork_try_prefetch_state) | ||
|
||
def set_random_seed(self, seed=None): | ||
self._random = random.Random(seed) | ||
|
||
def set_nickname(self, nickname): |
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.
when would set_nickname be called?
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.
Maybe you have 2 ZKSync branches and you want to call one zksync-testnet
and one zksync-mainnet
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.
yea but it is already set at construction, so i'm not sure why set_nickname would be called after construction
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.
If you’re in a Python shell and you setup zksync and called it zksync, but then realized you have 2 zksync chains, you’d have to just make two new ones with new names? Feels awkward to then have 3.
- zksync
- Zksync testnet
- Zksync mainnet
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.
please roll back the requirements / dev-dependencies changes, they are out of scope here
I added the nickname attribute to the Env and NetworkEnv objects. * added nicknames to envs * fix url masking --------- Co-authored-by: Charles Cooper <[email protected]>
What I did
nickname
attribute to theEnv
andNetworkEnv
objects.pyproject.toml
to havedev-dependencies
, so all dependencies can be in a single file, instead of split.If the dev-dependencies change is nice, I'm happy to update
CONTRIBUTING.md
documentation as such, and also the rest of the dependency management.How I did it
How to verify it
Description for the changelog
nickname
attribute toEnv
andNetworkEnv
classesCute Animal Picture