Skip to content

Solidity Metrics not generating Inheritance/Call graphs for EVM Cancun #16

@malevolent

Description

@malevolent

Hi,
To repro just install Univ4 (https://github.com/Uniswap/v4-core/tree/main/src) and enable cancun by changing your local workspace to use a)the solc bits in their repo or b) setting --evm-version to cancun for your workspace compiler.

Problem When you use solidity-metrics to generate the inheritance/call graphs for repos using tstore/tload, the file using the new opcodes breaks the graph generation. I am guessing this is a solidity lang issue and that somehow, solidity metrics is using the global path of solidity and when the graph tries to be generated, the file using the new cancun opcodes (src/libraries/Lockers.sol with the tstore and tload opcodes) is what's breaking the graph generation.
How can I sanity test my solidity metrics is using the solidity bits I want it to use? My hair is on fire!! Sorry in advance if this is a dumb question or if I missed something obvious, I checked the places I could and thats why I'm submitting an issue.

Metadata

Metadata

Assignees

No one assigned

    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