Closed Lem0nTree closed 9 months ago
You need to install the compiler and pass a flag. See this note in the readme for version 0.5: https://github.com/OpenZeppelin/solidity-docgen/tree/0.5#solidity-07
Solved with
npm install -D solc-0.8.21@npm:solc@^0.8.21
yarn solidity-docgen --solc-module solc-0.8.21
Hello, I almost lost one day trying to make run docgen on truffle, without any result unfortunately. Here some specs:
truffle --version
Truffle v5.11.5 (core: 5.11.5) Ganache v7.9.1 Solidity - 0.8.21 (solc-js) Node v16.20.0 Web3.js v1.10.0npm solc --version
8.19.4solidity-doccgen --version
0.5.17Using
truffle compile
everything works properly and contracts get compiled.When trying to run
yarn solidity-docgen
got this errorSeems docgen is using solc 0.6.12 instead of the actual 8.19.4
Thank you to anybody helping me solving this 🙌