Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug-Candidate]: Slither python API went wrong when multiple SPDX license #2532

Open
alexanderhawl opened this issue Aug 13, 2024 · 3 comments
Labels
question Further information is requested

Comments

@alexanderhawl
Copy link

alexanderhawl commented Aug 13, 2024

Describe the issue:

I downloaed the smart contracts source code and use slither to detect them in python. But the smart contract which have two different SPDX license in its two subcontracts. So the Slither('EPEPE.sol') went wrong. The error is multiple SPDX license.
https://etherscan.io/address/0xcd8d706ada4fd5c540e47d98f126f991813c44ed#code

Code example to reproduce the issue:

from slither.slither import Slither  
cts=Slither('EPEPE.sol')

Version:

0.10.3

Relevant log output:

Multiple SPDX license
@alexanderhawl alexanderhawl added the bug-candidate Bugs reports that are not yet confirmed label Aug 13, 2024
@elopez
Copy link
Member

elopez commented Aug 13, 2024

Hi! Can you post the complete Slither output? I don't think we have anything in particular that detects multiple SPDX licenses; what you're seeing might be an error/warning from solc (the compiler).

@alexanderhawl
Copy link
Author

I think It's a solc error. Can I solve it in slither?

@elopez
Copy link
Member

elopez commented Aug 13, 2024

If it's a solc error you need to solve it in the solidity code. Slither requires code that can be compiled successfully.

@0xalpharush 0xalpharush added question Further information is requested and removed bug-candidate Bugs reports that are not yet confirmed labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants