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

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

Open
vrushalipanchal opened this issue Apr 5, 2024 · 0 comments

Comments

@vrushalipanchal
Copy link

vrushalipanchal commented Apr 5, 2024

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:

  • Attempt to compile or process the source file FiatTokenV2_2_flattened.sol.
  • Observe the error message indicating the presence of multiple SPDX license identifiers.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant