vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
251 stars 49 forks source link

feat: handle constructor logs and exceptions #228

Closed DanielSchiavini closed 4 months ago

DanielSchiavini commented 4 months ago

Fixes #226

What I did

How I did it

How to verify it

Description for the changelog

Cute Animal Picture

image

charles-cooper commented 4 months ago

there are some related things here, like showing tracebacks on ctor errors

charles-cooper commented 4 months ago

i designed ctor calls (don't inspect evm error, just propagate) and regular calls (have special exception handler) differently because i was more focused on regular calls at the time. it's also a bit difficult to catch ctor exceptions because the contract object hasn't been instantiated yet. but it would be better UX if ctor exceptions also went thru the richer exception handling machinery