|
|
@ -1024,8 +1024,12 @@ class Function(SourceMapping, metaclass=ABCMeta): # pylint: disable=too-many-pu |
|
|
|
view = " view" if self.view else "" |
|
|
|
view = " view" if self.view else "" |
|
|
|
pure = " pure" if self.pure else "" |
|
|
|
pure = " pure" if self.pure else "" |
|
|
|
payable = " payable" if self.payable else "" |
|
|
|
payable = " payable" if self.payable else "" |
|
|
|
returns = ["address" if isinstance(ret.type, UserDefinedType) and isinstance(ret.type.type, Contract) |
|
|
|
returns = [ |
|
|
|
else str(ret.type) for ret in self.returns] |
|
|
|
"address" |
|
|
|
|
|
|
|
if isinstance(ret.type, UserDefinedType) and isinstance(ret.type.type, Contract) |
|
|
|
|
|
|
|
else str(ret.type) |
|
|
|
|
|
|
|
for ret in self.returns |
|
|
|
|
|
|
|
] |
|
|
|
self._interface_signature_str = ( |
|
|
|
self._interface_signature_str = ( |
|
|
|
name + "(" + ",".join(parameters) + ") external" + payable + pure + view |
|
|
|
name + "(" + ",".join(parameters) + ") external" + payable + pure + view |
|
|
|
) |
|
|
|
) |
|
|
|