You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vyper Version (output of vyper --version): 0.4.0+commit.e9db8d9
OS: osx
Python Version (output of python --version): 3.12.4
What's your issue about?
I cannot do slice(address.code, offset, SOME_CONSTANT) if SOME_CONSTANT is defined as SOME_CONSTANT: constant(uint256) giving me the error:
Error: Compiler run failed:
Location: src/periphery/ControllerV1.vy
(address).code is only allowed inside of a slice function with a constant length
contract "src/periphery/ControllerV1.vy:155", function "_get_partial_key", line 155:8
154 section: Bytes[CONFIG_ENTRY_SIZE] = slice(
---> 155 store.code,
-----------------^
156 STORE_HEADER_SIZE + index * CONFIG_ENTRY_SIZE,
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
): 0.4.0+commit.e9db8d9python --version
): 3.12.4What's your issue about?
I cannot do
slice(address.code, offset, SOME_CONSTANT)
ifSOME_CONSTANT
is defined asSOME_CONSTANT: constant(uint256)
giving me the error:The text was updated successfully, but these errors were encountered: