|
|
|
@ -71,7 +71,8 @@ contract Token{ |
|
|
|
|
if not contract.is_possible_erc721() or not contract.is_possible_erc20(): |
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
functions = [f for f in contract.functions if IncorrectERC721InterfaceDetection.incorrect_erc721_interface(f.signature)] |
|
|
|
|
funcs = contract.functions |
|
|
|
|
functions = [f for f in funcs if IncorrectERC721InterfaceDetection.incorrect_erc721_interface(f.signature)] |
|
|
|
|
return functions |
|
|
|
|
|
|
|
|
|
def _detect(self): |
|
|
|
@ -81,7 +82,7 @@ contract Token{ |
|
|
|
|
dict: [contract name] = set(str) events |
|
|
|
|
""" |
|
|
|
|
results = [] |
|
|
|
|
for c in self.contracts: |
|
|
|
|
for c in self.slither.contracts_derived: |
|
|
|
|
functions = IncorrectERC721InterfaceDetection.detect_incorrect_erc721_interface(c) |
|
|
|
|
if functions: |
|
|
|
|
info = "{} ({}) has incorrect ERC721 function interface(s):\n" |
|
|
|
|