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
If you try to define an interface constant, it doesn't see it as a literal value
interface Bar:
def bar(): nonpayable
BAR: constant(Bar) =Bar(0x0000000000000000000000000000000000000000)
File "~/.pyenv/versions/3.9.13/envs/academy/lib/python3.9/site-packages/ape_vyper/compiler.py", line 236, in compile
result = vvm.compile_standard(
File "~/.pyenv/versions/3.9.13/envs/academy/lib/python3.9/site-packages/vvm/main.py", line 188, in compile_standard
raise VyperError(
vvm.exceptions.VyperError: Value must be a literal
contract "Foo.vy:5", line 5:21
4
---> 5 BAR: constant(Bar) = Bar(0x0000000000000000000000000000000000000000)
----------------------------^
6
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
): 0.3.7python --version
): n/aWhat's your issue about?
If you try to define an interface constant, it doesn't see it as a literal value
The text was updated successfully, but these errors were encountered: