Skip to content

Commit

Permalink
visit call else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jul 25, 2023
1 parent 31276d9 commit 39a9b93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def visit_Call(self, node: vy_ast.Call, typ: Optional[VyperType] = None) -> None
# except for builtin functions, `get_exact_type_from_node`
# already calls `validate_expected_type` on the call args
# and kwargs via `call_type.fetch_call_return`
self.visit(node.func, call_type)
#self.visit(node.func, call_type)

if isinstance(call_type, ContractFunctionT):
# function calls
Expand Down Expand Up @@ -703,6 +703,7 @@ def visit_Call(self, node: vy_ast.Call, typ: Optional[VyperType] = None) -> None
for arg, arg_type in zip(node.args, call_type.arg_types):
self.visit(arg, arg_type)
else:
node._metadata["type"] = call_type.fetch_call_return(node)
# builtin functions
arg_types = call_type.infer_arg_types(node)
# `infer_arg_types` already calls `validate_expected_type`
Expand Down

0 comments on commit 39a9b93

Please sign in to comment.