circlefin / stablecoin-evm

Source repository for smart contracts used by Circle's stablecoins on EVM-compatible blockchains
Apache License 2.0
545 stars 331 forks source link

Multiple SPDX License Identifiers and Contract Verification Failure for "FiatTokenV2_2" #444

Open vrushalipanchal opened 5 months ago

vrushalipanchal commented 5 months ago

Hello Team,

Encountered an error while compiling or processing the source file FiatTokenV2_2_flattened.sol due to the presence of multiple SPDX license identifiers. The file contains two SPDX license identifiers, namely "Apache-2.0" and "MIT", resulting in the following error message:

.deps/github/circlefin/stablecoin-evm/contracts/v2/FiatTokenV2_2_flattened.sol: ParserError: Multiple SPDX license identifiers found in source file. Use "AND" or "OR" to combine multiple licenses. Please see https://spdx.org for more information.

As per the SPDX specification, a source file should contain only one SPDX license identifier. If multiple licenses are applicable, they should be combined using "AND" or "OR" as appropriate. To address this, the SPDX license identifier "SPDX-License-Identifier: Apache-2.0 OR MIT" has been used.

Steps to Reproduce:

Additional IMP issue: Due to this issue, we are unable to interact with the functions of the FiatTokenV2_2 smart contract. This slows down the contract's verification process as well.

Refer to the attached screenshot: image