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

Adds errors to the Contract class #102

Merged
merged 9 commits into from
Feb 1, 2024

Conversation

sentilesdal
Copy link
Contributor

  • add plumbing to add errors to the contract
  • regen types
  • add tests
  • get input types dynamically
  • add decoding to contract errors
  • add method to decode any contract error

@codecov-commenter
Copy link

Codecov Report

Attention: 59 lines in your changes are missing coverage. Please review.

Comparison is base (8f1af44) 67.01% compared to head (8bfbcb9) 67.49%.

Files Patch % Lines
pypechain/test/errors/types/utilities.py 30.76% 27 Missing ⚠️
pypechain/test/errors/types/ErrorsContract.py 83.33% 26 Missing ⚠️
pypechain/render/contract.py 25.00% 3 Missing ⚠️
pypechain/utilities/abi.py 50.00% 2 Missing ⚠️
pypechain/templates/utilities.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
+ Coverage   67.01%   67.49%   +0.47%     
==========================================
  Files          46       49       +3     
  Lines        2101     2307     +206     
==========================================
+ Hits         1408     1557     +149     
- Misses        693      750      +57     
Flag Coverage Δ
unittests 67.49% <71.90%> (+0.47%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sentilesdal sentilesdal force-pushed the matt-add-events-errors-to-contract branch from 71a43fe to 314bab4 Compare February 1, 2024 20:09
@sentilesdal sentilesdal merged commit 795cc29 into main Feb 1, 2024
6 checks passed
@sentilesdal sentilesdal deleted the matt-add-events-errors-to-contract branch February 1, 2024 20:17
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.

3 participants