generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: Add standard error support [APE-914] #99
Merged
antazoey
merged 8 commits into
ApeWorX:main
from
OwlOfMoistness:feat/add_standard_error_support
May 31, 2023
Merged
feat: Add standard error support [APE-914] #99
antazoey
merged 8 commits into
ApeWorX:main
from
OwlOfMoistness:feat/add_standard_error_support
May 31, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vany365
changed the title
Add standard error support
Add standard error support [APE-914]
Apr 30, 2023
OwlOfMoistness
changed the title
Add standard error support [APE-914]
add: Add standard error support [APE-914]
Apr 30, 2023
OwlOfMoistness
changed the title
add: Add standard error support [APE-914]
feat: Add standard error support [APE-914]
Apr 30, 2023
fubuloubu
reviewed
Apr 30, 2023
antazoey
force-pushed
the
feat/add_standard_error_support
branch
from
May 30, 2023 17:48
e01f240
to
49c7997
Compare
fubuloubu
reviewed
May 30, 2023
fubuloubu
previously approved these changes
May 30, 2023
Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
|
4 tasks
fubuloubu
approved these changes
May 31, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not ideal to use pkg-resources, but works for now
we are already using it somewhere it seems, but at least for this part we can delete after 0.6.11 comes out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
Added a StandardError class object to provide support for built-in errors of the solidity compiler via the Panic(uint256) error.
fixes: Being able to support built-in errors inside the
ape.reverts(StandardError.some_standard_error)
How I did it
Added the object in the _utils file and then imported the object in the init file
How to verify it
Checklist