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): commit 4b4e188ba83d28b5dd6ff66479e7448e5b925030
Issue description
According to the documentation, the default arguments of a function must
be literals or environment variables, however, immutables are allowed to
be used as default arguments.
i'm not sure yet if this is a compiler bug or docs issue, but i'm leaning towards docs issue.
note that this behavior was introduced in #3669, and that this behavior is blocked for pure functions as of #3895 (pure cannot read from runtime code, but view can)
Version Information
vyper --version
): commit4b4e188ba83d28b5dd6ff66479e7448e5b925030
Issue description
According to the documentation, the default arguments of a function must
be literals or environment variables, however, immutables are allowed to
be used as default arguments.
The following contract compiles:
credits: @trocher
The text was updated successfully, but these errors were encountered: