vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@commitish): 0.4.0rc3+commit.80708e6d
Issue description
When the _abi_encode function contains a slice call, which contains a length, that is a constant variable, then code generation fails. If the constant variable is replaced with the actual constant, compilation succeeds.
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@commitish):0.4.0rc3+commit.80708e6d
Issue description
When the
_abi_encode
function contains aslice
call, which contains a length, that is aconstant
variable, then code generation fails. If theconstant
variable is replaced with the actual constant, compilation succeeds.POC
fails to compile with:
Note that this code compiles successfully: