pull/305/head
Josselin 5 years ago
parent aec680c5fe
commit 2ff1b296a1
  1. 10
      slither/solc_parsing/slitherSolc.py

@ -224,11 +224,11 @@ class SlitherSolc(Slither):
else: else:
father_constructors.append(self._contracts_by_id[i]) father_constructors.append(self._contracts_by_id[i])
except KeyError: except KeyError as e:
txt = 'A contract was not found, it is likely that your codebase contains muliple contracts with the same name' txt = f'A contract was not found (id {e}), it is likely that your codebase contains muliple contracts with the same name. '
txt += 'Truffle does not handle this case during compilation' txt += 'Truffle does not handle this case during compilation. '
txt += 'Please read https://github.com/trailofbits/slither/wiki#keyerror-or-nonetype-error' txt += 'Please read https://github.com/trailofbits/slither/wiki#keyerror-or-nonetype-error, '
txt += 'And update your code to remove the duplicate' txt += 'and update your code to remove the duplicate'
raise ParsingContractNotFound(txt) raise ParsingContractNotFound(txt)
contract.setInheritance(ancestors, fathers, father_constructors) contract.setInheritance(ancestors, fathers, father_constructors)

Loading…
Cancel
Save