Skip to content

exit instruction in runtime code #4317

@charles-cooper

Description

@charles-cooper

the following code emits an exit instruction in the runtime code

totalShares: public(uint256)

# Set up the company.
@deploy
def __init__(_total_shares: uint256):
    pass

running vyper --experimental-codegen -f bb_runtime gives:

fallback:  IN=[__main_entry, 47_if_exit] OUT=[] => {}
    revert 0, 0
    exit

Originally posted by @sandbubbles in #4314 (comment)

this isn't a big deal since the exit gets optimized out, but we should remove it as a matter of well-formedness.

Metadata

Metadata

Labels

RefactorIssues related to refactoring the codebasebug - venombug in experimental venom pipeline

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions