Open AlbertoCentonze opened 3 months ago
Given the interface below foo.vyi it is currently possible to declare constants:
foo.vyi
bar: constant(uint256)
However, compilation fails when importing the interface in a contract file and trying to use the constant above.
import foo @external def some_function() -> uint256: return foo.bar
Either allow constants to be imported successfully from interfaces (I would prefer this option) or remove the possibility to declare constants in vyi files
vyi
linking https://github.com/vyperlang/vyper/issues/3991 as they are dup
What's your issue about?
Given the interface below
foo.vyi
it is currently possible to declare constants:However, compilation fails when importing the interface in a contract file and trying to use the constant above.
How can it be fixed?
Either allow constants to be imported successfully from interfaces (I would prefer this option) or remove the possibility to declare constants in
vyi
files