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

Assert unreachable statement #1445

Merged
merged 11 commits into from
May 24, 2019

Conversation

jacqueswww
Copy link
Contributor

What I did

Fixes #711.

@charles-cooper @fubuloubu Time to lay this one to rest?

How I did it

How to verify it

Description for the changelog

Cute Animal Picture

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

@fubuloubu
Copy link
Member

fubuloubu commented May 23, 2019

Yassssss

Ohhh, I can actually test this because I've been working on a tool

@fubuloubu
Copy link
Member

Nope.... can't test this ugh. eth-tester uses this function to replace all specialized errors in the VM with TransactionFailed

@jacqueswww jacqueswww changed the title 711 assure statement Assert unreachable statement May 23, 2019
vyper/opcodes.py Outdated Show resolved Hide resolved
@charles-cooper
Copy link
Member

Overall LGTM, mainly just wondering how the gas estimate was arrived at.

@jacqueswww
Copy link
Contributor Author

Fixed the gas cost after calculating generated code by hand.

@jacqueswww
Copy link
Contributor Author

@fubuloubu I tested above, and the exception info is empty, so message will do fine here.

ipdb> print(e_info.value.__context__ )                                                                                                                                
None
ipdb>print(e_info.value.__cause__)
None

@jacqueswww jacqueswww merged commit a81278a into vyperlang:master May 24, 2019
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: Enable Dynamic Analysis/Symbolic Execution Checks
3 participants