diff --git a/tests/functional/syntax/test_external_calls.py b/tests/functional/syntax/test_external_calls.py index 79f3f6db93..a8fb5ae87b 100644 --- a/tests/functional/syntax/test_external_calls.py +++ b/tests/functional/syntax/test_external_calls.py @@ -305,7 +305,7 @@ def bar(): extcall Foo(msg.sender) """, StructureException, - "Function `type(interface Foo)` cannot be called without assigning the result", + "Function `type(Foo)` cannot be called without assigning the result", None, ), ] diff --git a/vyper/semantics/types/module.py b/vyper/semantics/types/module.py index 60eb93bcac..ba72842c65 100644 --- a/vyper/semantics/types/module.py +++ b/vyper/semantics/types/module.py @@ -76,6 +76,9 @@ def getter_signature(self): def abi_type(self) -> ABIType: return ABI_Address() + def __str__(self): + return self._id + def __repr__(self): return f"interface {self._id}"