OffchainLabs / stylus-sdk-rs

Rust Smart Contracts on Arbitrum
249 stars 80 forks source link

Simple derive macro for better struct support #138

Closed rory-ocl closed 3 months ago

rory-ocl commented 4 months ago

Description

This allows usage of #[derive(AbiType)] within the sol! {} macro to support structs as return types. This should also apply to usage as parameters. I am curious about other use-cases such as structs defined outside of the sol! {} macro, and structs define in the sol_storage! {} macro.

Checklist