You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
Currently for a function in contract that returns a struct, its abigen! generated signature would have a tuple as its return types in rust.
// assume `contract` has been instantiated let person = contract.defaultPerson().call().await?;// ^^^ this is a tuple of (String, U256), instead of struct Person from abigen!
Describe the solution you'd like
Ideally we could also have return types matched the solidity function signature instead of ABIEncoderV2's representation.
Is your feature request related to a problem? Please describe.
Currently for a function in contract that returns a struct, its abigen! generated signature would have a tuple as its return types in rust.
contract's ABI
and in my Rust code:
Describe the solution you'd like
Ideally we could also have return types matched the solidity function signature instead of ABIEncoderV2's representation.
Thanks a lot! @mattsse
The text was updated successfully, but these errors were encountered: