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.3.7+commit.6020b8b
OS: GNU/Linux
Python Version (output of python --version): Python 3.10.9
What's your issue about?
> cat error5.vy
MAX: constant(uint256) = 9
@external
@view
def foo(y: DynArray[uint256, MAX]) -> uint256:
return y[1]
> cat error6.vy
MAX: constant(uint256) = 9 # this line can be included or excluded, the error is the same
import error5 as E5
> vyper error5.vy
# ... outputs bytecode, no error
> vyper error6.vy
Error compiling: error6.vy
vyper.exceptions.StructureException: DynArray must be defined with base type and max length, e.g. DynArray[bool, 5]
contract "E5:5", function "foo", line 5:11
4 @view
---> 5 def foo(y: DynArray[uint256, MAX]) -> uint256:
------------------^
6 return y[1]
How can this contract be imported?
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
):0.3.7+commit.6020b8b
python --version
):Python 3.10.9
What's your issue about?
How can this contract be imported?
The text was updated successfully, but these errors were encountered: