Skip to content

assert/raise modifications#2050

Merged
iamdefinitelyahuman merged 5 commits into
vyperlang:masterfrom
iamdefinitelyahuman:assert-modifiable
Jun 26, 2020
Merged

assert/raise modifications#2050
iamdefinitelyahuman merged 5 commits into
vyperlang:masterfrom
iamdefinitelyahuman:assert-modifiable

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
Contributor

What I did

  • remove constancy checks on assert statements
  • remove the assert_modifiable builtin function
  • allow raise without a reason, with a reason >32 chars long, or with UNREACHABLE

The documentation isn't perfect, but I plan to add a new section for statements where I'll end up rewriting all of this anyway.

Closes #1902

How to verify it

Run tests.

Cute Animal Picture

image

Comment thread vyper/parser/context.py
Comment thread vyper/parser/expr.py
Comment thread vyper/parser/external_call.py
Comment thread vyper/parser/stmt.py
@iamdefinitelyahuman iamdefinitelyahuman merged commit 74d38ce into vyperlang:master Jun 26, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the assert-modifiable branch June 26, 2020 22:01
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.

VIP: Allow raise without reason string

2 participants