We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
According to the EthDebug spec, a source's contents and language are required fields, but solc does not generate them. See: https://ethdebug.github.io/format/spec/materials/source
solc --standard-json input.json --pretty-json > ouput.json
input.json
{ "language": "Solidity", "sources": { "contract.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.29;\n\nabstract contract GreeterBase {\n function greet() public view virtual returns (string memory);\n}" }, "interface.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.29;\n\ninterface IGreeter {\n function greet() external view returns (string memory);\n}" } }, "settings": { "viaIR": true, "debug": { "debugInfo": [ "ethdebug" ] }, "outputSelection": { "*": { "*": [ "evm.bytecode.ethdebug", "evm.deployedBytecode.ethdebug", "ir", "irOptimized" ] } } } }
output.json
{ "contracts": { // ... }, "ethdebug": { "compilation": { "compiler": { "name": "solc", "version": "0.8.29+commit.ab55807c.Linux.g++" }, "sources": [ { "id": 0, "path": "contract.sol" // "language": <-- missing // "contents": <-- missing }, { "id": 1, "path": "interface.sol" // "language": <-- missing // "contents": <-- missing } ] } }, "sources": { "contract.sol": { "id": 0 }, "interface.sol": { "id": 1 } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
According to the EthDebug spec, a source's contents and language are required fields, but solc does not generate them. See: https://ethdebug.github.io/format/spec/materials/source
Environment
Steps to Reproduce
solc --standard-json input.json --pretty-json > ouput.json
input.json
output.json
The text was updated successfully, but these errors were encountered: