Skip to content

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

Open
@0xalpharush

Description

@0xalpharush

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"
                            ]
                        }
                    }
                }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions