We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InterfaceT.__str__
1 parent cefb0c5 commit f909d6eCopy full SHA for f909d6e
tests/functional/syntax/test_external_calls.py
@@ -305,7 +305,7 @@ def bar():
305
extcall Foo(msg.sender)
306
""",
307
StructureException,
308
- "Function `type(interface Foo)` cannot be called without assigning the result",
+ "Function `type(Foo)` cannot be called without assigning the result",
309
None,
310
),
311
]
vyper/semantics/types/module.py
@@ -76,6 +76,9 @@ def getter_signature(self):
76
def abi_type(self) -> ABIType:
77
return ABI_Address()
78
79
+ def __str__(self):
80
+ return self._id
81
+
82
def __repr__(self):
83
return f"interface {self._id}"
84
0 commit comments