Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix/zksync tx fail #90

Merged
merged 11 commits into from
Oct 15, 2024
Merged

Fix/zksync tx fail #90

merged 11 commits into from
Oct 15, 2024

Conversation

PatrickAlphaC
Copy link
Member

No description provided.

@@ -107,8 +109,11 @@ def _set_boa_env_and_db(self) -> _AnyEnv:

# 3. Finally, "true" networks
elif self.is_zksync:
env = ZksyncEnv(EthereumRPC(self.url), nickname=self.name)
boa.set_env(env)
if self.explorer_type != "zksyncexplorer":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the string should be in a constant. Btw, why is it lower case here?
If imported, we could also use ZksyncExplorer.__name__

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are able to set the explorer_type in the moccasin.toml. It's hard to know what type of explorer it is based on the URL alone.

PatrickAlphaC and others added 6 commits October 15, 2024 09:23
Co-authored-by: Daniel Schiavini <daniel.schiavini@gmail.com>
Co-authored-by: Daniel Schiavini <daniel.schiavini@gmail.com>
Co-authored-by: Daniel Schiavini <daniel.schiavini@gmail.com>
Co-authored-by: Daniel Schiavini <daniel.schiavini@gmail.com>
@PatrickAlphaC PatrickAlphaC merged commit bf81679 into main Oct 15, 2024
2 checks passed
@PatrickAlphaC PatrickAlphaC deleted the fix/zksync-tx-fail branch October 17, 2024 14:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants