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

allow arbitrary revert reason strings #2509

Merged

Conversation

charles-cooper
Copy link
Member

What I did

Fix #2449

How I did it

A bit of magic

How to verify it

I will write some tests

Description for the changelog

Allow variable revert reason strings

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2021

Codecov Report

Merging #2509 (2a4972f) into master (cec2c53) will increase coverage by 0.00%.
The diff coverage is 75.75%.

❗ Current head 2a4972f differs from pull request most recent head f47906d. Consider uploading reports for the commit f47906d to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2509   +/-   ##
=======================================
  Coverage   84.63%   84.64%           
=======================================
  Files          94       94           
  Lines        9273     9292   +19     
  Branches     2093     2096    +3     
=======================================
+ Hits         7848     7865   +17     
- Misses        940      941    +1     
- Partials      485      486    +1     
Impacted Files Coverage Δ
vyper/old_codegen/stmt.py 86.61% <71.42%> (-1.34%) ⬇️
vyper/semantics/validation/local.py 90.83% <100.00%> (+0.14%) ⬆️
vyper/builtin_functions/functions.py 89.32% <0.00%> (+0.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cec2c53...f47906d. Read the comment docs.

@charles-cooper charles-cooper marked this pull request as ready for review October 24, 2021 17:55
Copy link
Member

@fubuloubu fubuloubu left a comment

Choose a reason for hiding this comment

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

Test that a non-string causes a compiler error

@charles-cooper charles-cooper merged commit 4b9d860 into vyperlang:master Oct 25, 2021
@charles-cooper charles-cooper deleted the fix/revert_reason_strings branch October 25, 2021 19:11
@emc415 emc415 mentioned this pull request Dec 19, 2022
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.

assert message strings
3 participants