Closed austinabell closed 3 months ago
It just so happens that only your constructor has references to types not defined in the same file, and now it got exposed because we parse constructors. This is not a regression, we're simply considering more code and this behavior was never allowed.
Consider using JSON ABI or defining a separate interface manually.
Component
sol! macro
What version of Alloy are you on?
regression was from 0.6.1 (commit a315b0d22f37e8c15af84fed0bd553ea10fd1fbd)
Operating System
None
Describe the bug
Bisecting versions and commits, the regression happened on 0.6.0..0.6.1 on this commit https://github.com/alloy-rs/core/commit/a315b0d22f37e8c15af84fed0bd553ea10fd1fbd
The contract is pretty simple where
sol!
is pointing at a sol file, and the type not found is referencing something remapped in theremappings.txt
.Error looks like: