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
In interface files (.vyi), function bodies should only contain the AST
Ellipsis node (...). However given how the corresponding check is
done, any statement node with a value field containing an Ellipsis
node can be used in place of the Expr AST node.
iflen(funcdef.body) !=1ornotisinstance(funcdef.body[0].get("value"), vy_ast.Ellipsis):
raiseFunctionDeclarationException(
"function body in an interface can only be `...`!", funcdef
)
POC
For example, compiling a contract importing the following interface does
not raise any exception:
@externaldeffoo():
log ...
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
): commit4b4e188ba83d28b5dd6ff66479e7448e5b925030
Issue description
In interface files (
.vyi
), function bodies should only contain the ASTEllipsis node (
...
). However given how the corresponding check isdone, any statement node with a
value
field containing an Ellipsisnode can be used in place of the
Expr
AST node.POC
For example, compiling a contract importing the following interface does
not raise any exception:
The text was updated successfully, but these errors were encountered: