Skip to content

Commit

Permalink
Revert "abi compatibility"
Browse files Browse the repository at this point in the history
This reverts commit 9e9ba85.
  • Loading branch information
charles-cooper committed Apr 19, 2024
1 parent 9e9ba85 commit c3eef76
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions vyper/semantics/types/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,16 +496,11 @@ def implements(self, other: "ContractFunctionT") -> bool:
if len(arguments) != len(other_arguments):
return False
for atyp, btyp in zip(arguments, other_arguments):
labi = atyp.abi_type
rabi = btyp.abi_type
if labi.selector_name() != rabi.selector_name():
if not atyp.compare_type(btyp):
return False

if return_type is not None:
if other_return_type is None:
return False
if return_type.abi_type.selector_name() != other_return_type.abi_type.selector_name():
return False
if return_type and not return_type.compare_type(other_return_type): # type: ignore
return False

return self.mutability == other.mutability

Expand Down

0 comments on commit c3eef76

Please sign in to comment.