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

Bump web3 to v7 and safe-eth-py to v7 #107

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

falvaradorodriguez
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Feb 20, 2025

Pull Request Test Coverage Report for Build 13434664562

Details

  • 24 of 25 (96.0%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 96.427%

Changes Missing Coverage Covered Lines Changed/Added Lines %
app/services/data_decoder.py 9 10 90.0%
Totals Coverage Status
Change from base Build 13388062332: 0.007%
Covered Lines: 2078
Relevant Lines: 2155

💛 - Coveralls

@falvaradorodriguez falvaradorodriguez marked this pull request as ready for review February 20, 2025 11:24
@falvaradorodriguez falvaradorodriguez requested a review from a team as a code owner February 20, 2025 11:24
@@ -68,7 +68,7 @@ def __init__(self):

@staticmethod
async def _store_abis_in_database(
abi_jsons: list[Sequence[ABIFunction | ABIEvent]],
abi_jsons: list[ABI],
Copy link
Member

Choose a reason for hiding this comment

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

Why? ABIFunction is not the same as ABI

Copy link
Contributor Author

@falvaradorodriguez falvaradorodriguez Feb 20, 2025

Choose a reason for hiding this comment

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

Because of this, the Contract class in web3, is returning ABI (ABI = Sequence[ABIElement]) as type for the abi attribute.

For example, in functions like: get_multi_send_contract(self.dummy_w3).abi.

Mypy is warning of this problem

Copy link
Member

Choose a reason for hiding this comment

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

Ok! Then it works!

falvaradorodriguez and others added 3 commits February 20, 2025 12:46
Co-authored-by: Uxío <Uxio0@users.noreply.github.com>
Co-authored-by: Uxío <Uxio0@users.noreply.github.com>
@falvaradorodriguez falvaradorodriguez merged commit 13d4ff0 into main Feb 21, 2025
5 checks passed
@falvaradorodriguez falvaradorodriguez deleted the bump-web3-and-safe-eth-py branch February 21, 2025 09:20
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2025
@falvaradorodriguez falvaradorodriguez self-assigned this Feb 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants