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

fix: Show network instead of provider in ContractNotFoundError #2202

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Aug 2, 2024

What I did

ContractNotFoundError was confusing in some cases by no using networkchoice and instead only showing provider name,
like

Current provider 'node' has no associated explorer plugin.

this pr improves the error message

How I did it

now shows

2C497'. Current network 'ethereum:local:node' has no associated explorer plugin.

How to verify it

see tests

Checklist

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

@antazoey antazoey requested a review from dtdang August 2, 2024 16:11
@antazoey antazoey enabled auto-merge (squash) August 2, 2024 17:31
@antazoey antazoey merged commit 26d762a into ApeWorX:main Aug 2, 2024
15 checks passed
@antazoey antazoey deleted the fix/explorer-error-fix branch August 2, 2024 18:24
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