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: nested reverts errors #230

Merged
merged 4 commits into from
May 20, 2024

Conversation

DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented May 17, 2024

Fixes #143

What I did

  • Fixed nested revert errors

How I did it

  • By adding an attribute after changing the error object

How to verify it

  • The revert should not be nested anymore after calling str multiple times

Description for the changelog

  • Fixed revert error incorrect nesting

Cute Animal Picture

image

@DanielSchiavini DanielSchiavini marked this pull request as ready for review May 20, 2024 10:33
Copy link
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

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

thanks!

@charles-cooper charles-cooper merged commit 4430c0d into vyperlang:master May 20, 2024
9 checks passed
@@ -102,7 +102,10 @@ def __str__(self):
frame = self.stack_trace.last_frame
if hasattr(frame, "vm_error"):
err = frame.vm_error
err.args = (frame.pretty_vm_reason, *err.args[1:])
if not hasattr(err, "_boa_patched__"):
Copy link
Member

Choose a reason for hiding this comment

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

might be confusing to future maintainers since this is also used elsewhere to see if the state database has been monkey patched

Copy link
Member

Choose a reason for hiding this comment

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

updated in master b6904a9

@DanielSchiavini DanielSchiavini deleted the fix/revert branch June 3, 2024 14:23
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.

Empty, nested revert messages contain unexpected characters
2 participants