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

Cannot generate docs from flattened file #261

Open
mswezey23 opened this issue Dec 3, 2020 · 1 comment
Open

Cannot generate docs from flattened file #261

mswezey23 opened this issue Dec 3, 2020 · 1 comment

Comments

@mswezey23
Copy link

Steps to reproduce:

  1. flatten: npx truffle-flattener ./contracts/WrappedShift.sol >> ./build/flattened/WrappedShift.sol
  2. generate docs: npx solidity-docgen -i ./build/flattened/

Error:

    Error: Solidity was unable to compile. build/flattened/WrappedShift.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.`
@frangio
Copy link
Contributor

frangio commented Dec 4, 2020

This is a Solidity error, unrelated to solidity-docgen. You may be able to work around the error using a Solidity version earlier than 0.6.8, following steps like those in the readme.

That said, why are you using a flattened contract as the input?

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

2 participants