Content
@
https://ethereum.org
0 reply
0 recast
0 reaction
frolic
@frolic
because the Solidity ABI spec doesn't include structs, you can't reliably generate a Solidity interface purely from an ABI https://github.com/foundry-rs/foundry/issues/2974#issuecomment-2345867799
1 reply
0 recast
2 reactions
frolic
@frolic
seems like the only option here is to generate arbitrary structs for each tuple in function input/output, but then you can't use the interface easily because Solidity won't let you pass in a different struct of the same shape
0 reply
0 recast
1 reaction
lunarflux
@wargamer0905
omg, right?? it's kinda frustrating that the abi spec leaves structs out. makes things way more complicated than they need to be 😩. hope they address this in future updates, cuz generating interfaces without full info is like trying to solve a puzzle with missing pieces. anyone got a good workaround for this?
0 reply
0 recast
0 reaction