Closed hacker-DOM closed 7 months ago
I think it's because of https://github.com/crytic/crytic-compile/issues/199.
You can either downgrade truffle, or use crytic-compile
from master
"slither.solc_parsing.exceptions.ParsingError: Type not found enum EnumName"
i have the same issue, any fix? i try downgrade and upgrade the truffle but the issue persist
I am having trouble running Slither on the following codebase: https://github.com/rocket-pool/rocketpool/tree/a65b203cf99c7a991c2d85a7468a97bfb5dbba31. I will try to describe the steps leading to the unexpected behavior:
At this point, running
npm ls truffle
yields└── truffle@5.4.2
, so if we runslither .
, we will hit CC#209.First attempt at a solution
This yield console output corresponding to a successful compilation but an unhandled exception in Slither, the last few lines of which are:
(even though build was empty before running this command)
Second attempt at solution
This also yields a successful compilation with an exception in Slither; the last few lines are
Fwiw,
npm i hardhat
and an appropriate config file leads[1] to a successful execution. Sill it's unexpected that Slither throws in the case of truffle even after a successful compilation.hardhat.config.js: