Skip to content

refactor[venom]: update translator for deploy instruction#4318

Merged
charles-cooper merged 1 commit intovyperlang:masterfrom
charles-cooper:refactor/venom-deploy
Oct 29, 2024
Merged

refactor[venom]: update translator for deploy instruction#4318
charles-cooper merged 1 commit intovyperlang:masterfrom
charles-cooper:refactor/venom-deploy

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

this commit updates ir_node_to_venom.py for the deploy instruction to properly emit the exit instruction. it also removes places in the translator where the exit instruction was improperly emitted.

misc:

  • update style to continue early in the loop rather than nest.

What I did

fix #4317

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

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

this commit updates `ir_node_to_venom.py` for the `deploy` instruction
to properly emit the `exit` instruction. it also removes places in the
translator where the `exit` instruction was improperly emitted.

misc:
- update style to continue early in the loop rather than nest.
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 20, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Project coverage is 90.21%. Comparing base (b3ea663) to head (16460d1).
Report is 64 commits behind head on master.

Files with missing lines Patch % Lines
vyper/venom/function.py 42.85% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4318      +/-   ##
==========================================
- Coverage   91.40%   90.21%   -1.20%     
==========================================
  Files         112      112              
  Lines       15927    15927              
  Branches     2694     2693       -1     
==========================================
- Hits        14558    14368     -190     
- Misses        935     1093     +158     
- Partials      434      466      +32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper merged commit 3fba8c7 into vyperlang:master Oct 29, 2024
@charles-cooper charles-cooper changed the title refactor[venom]: update translator for deploy instruction refactor[venom]: update translator for deploy instruction Oct 29, 2024
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.

exit instruction in runtime code

3 participants