Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cache contains compiler settings for both solidity and vyper for solidity file #173

Open
0xalpharush opened this issue Jul 16, 2024 · 0 comments
Assignees

Comments

@0xalpharush
Copy link

0xalpharush commented Jul 16, 2024

There is an extra key serialized that probably shouldn't be written to cache/solidity-files-cache.json considering a solidity file cannot be compiled with the provided vyper settings. Fwiw this is not in a project that has any vyper files

        "lib/forge-gas-snapshot/src/GasSnapshot.sol": {
            "lastModificationDate": 1721164956506,
            "contentHash": "ee1b049b9744c27079a06bfab177039f",
            "sourceName": "lib/forge-gas-snapshot/src/GasSnapshot.sol",
            "compilerSettings": {
                "solc": {
                    "optimizer": {
                        "enabled": true,
                        "runs": 44444444
                    },
                    "metadata": {
                        "useLiteralContent": false,
                        "bytecodeHash": "ipfs",
                        "appendCBOR": true
                    },
                    "outputSelection": {
                        "*": {
                            "": [
                                "ast"
                            ],
                            "*": [
                                "abi",
                                "evm.bytecode",
                                "evm.deployedBytecode",
                                "evm.methodIdentifiers",
                                "metadata"
                            ]
                        }
                    },
                    "evmVersion": "cancun",
                    "viaIR": false,
                    "libraries": {}
                },
                "vyper": {
                    "evmVersion": "cancun",
                    "outputSelection": {
                        "*": {
                            "*": [
                                "abi",
                                "evm.bytecode",
                                "evm.deployedBytecode"
                            ]
                        }
                    }
                }
@zerosnacks zerosnacks added this to the v1.0.0 milestone Aug 7, 2024
@zerosnacks zerosnacks removed this from the v1.0.0 milestone Feb 26, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants