Skip to content

Commit

Permalink
fix - library has init function
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Apr 13, 2024
1 parent 4c10eaf commit 0450173
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vyper/semantics/analysis/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,11 @@ def visit_ExportsDecl(self, node):

module_exposed_fns = {fn.name: fn for fn in module_info.typ.exposed_functions}
# find the specific implementation of the function in the module
funcs = [module_exposed_fns[fname] for fname in info.typ.functions.keys()]
funcs = [
module_exposed_fns[fn.name]
for fn in info.typ.functions.values()
if fn.is_external
]
else:
raise StructureException(
f"not a function or interface: `{info.typ}`", info.typ.decl_node, item
Expand Down

0 comments on commit 0450173

Please sign in to comment.