slither icon indicating copy to clipboard operation
slither copied to clipboard

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

Open alexanderhawl opened this issue 1 year ago • 3 comments

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 avatar Aug 13 '24 08:08 alexanderhawl

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).

elopez avatar Aug 13 '24 08:08 elopez

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

alexanderhawl avatar Aug 13 '24 08:08 alexanderhawl

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

elopez avatar Aug 13 '24 08:08 elopez