vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.81k stars 788 forks source link

Experimental codegen with no optimizations fails #4162

Open ritzdorf opened 2 weeks ago

ritzdorf commented 2 weeks ago

Version Information

What's your issue about?

When trying to compile this contract:

@external
def foo() -> Bytes[32]:
    y: uint256 = 0
    if True:
        y += 1
    return abi_encode(y)

with the command:

vyper --experimental-codegen --optimize none a.vy

one gets the error:

AssertionError: Not implemented yet

Please note that compilation will be successful with --optimize gas and --optimize codesize.

This might be related to #4070