Open UsmannK opened 1 year ago
You can see brownie only makes an artifact for the main file
$ find build
build
build/contracts
build/contracts/Test.json
build/interfaces
build/deployments
It might actually be the case that the Helper.sol
artifact was inlined into the other one, I'm not sure.
This may be related to https://github.com/eth-brownie/brownie/issues/941. Will look into it and if there's not a work around/ fix, we'll update the list of platform limitations https://github.com/crytic/crytic-compile/issues/267
The same issue when I use slither .
to compile notional-v2.
I think this is actually a bug in brownie, but I'm not sure.
Brownie doesn't output compilation artifacts for some solidity files. For example, a helper file that only has some free functions. When slither is crawling file imports, it looks for the helper file's compilation artifact and then doesn't find it, so it crashes.
Example repo where slither crashes: https://github.com/UsmannK/slither-brownie-test
Test.sol
Helper.sol
Output