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: contract retrieval from ABI fails from fetch-attempt #2230

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

bitwise-constructs
Copy link
Contributor

What I did

improved error checking when using just an abi to retrieve contract

How I did it

How to verify it

Checklist

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

Copy link
Member

@antazoey antazoey left a comment

Choose a reason for hiding this comment

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

the fix makes sense but the test doesn't

tests/functional/test_chain.py Outdated Show resolved Hide resolved
@antazoey
Copy link
Member

Oh I finally see the problem. We are loading ABI from the str but never initializing a ContractType and then we reach the condition causing the failure, probably a result of a bugfix

@antazoey antazoey changed the title fix: contract retrieval from abi fix: contract retrieval from abi fails from fetch-attempt Aug 26, 2024
@antazoey antazoey changed the title fix: contract retrieval from abi fails from fetch-attempt fix: contract retrieval from ABI fails from fetch-attempt Aug 26, 2024
@antazoey antazoey enabled auto-merge (squash) August 26, 2024 19:01
@antazoey antazoey merged commit 228ab19 into ApeWorX:main Aug 26, 2024
16 checks passed
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