having some issues with calling mapping getters on contracts when the stored value contains non-static fields. looked through the code generated by sol! and noticed that there's an extra tuple wrapping around the return type, removing this fixes the issue. i believe the issue is here: https://github.com/alloy-rs/core/blob/main/crates/sol-macro-expander/src/expand/mod.rs#L847-L864 but i have not had much time to look into it further yet.
Component
sol! macro
What version of Alloy are you on?
Operating System
Linux
Describe the bug
having some issues with calling mapping getters on contracts when the stored value contains non-static fields. looked through the code generated by sol! and noticed that there's an extra tuple wrapping around the return type, removing this fixes the issue. i believe the issue is here: https://github.com/alloy-rs/core/blob/main/crates/sol-macro-expander/src/expand/mod.rs#L847-L864 but i have not had much time to look into it further yet.
Example
.connections()
works, but.channels()
does not.