NethermindEth / warp

Warp - Bringing Solidity to Starknet at warp speed. Warp is a Solidity to Cairo Compiler, this allows teams to write/migrate Solidity to Cairo for easy onboarding into the StarkNet ecosystem.
https://nethermind.io/warp/
Apache License 2.0
754 stars 70 forks source link

Complex return type in cross contract calls #1042

Open rjnrohit opened 1 year ago

rjnrohit commented 1 year ago

Right now, the for the cross contract calls only the simple primitive returns types are supported, but for complex types such as Struct , we need to modify cairoWriter to add #[derive(Serde)] attribute to struct cairo types.

i.e

#[derive(Serde)]
struct AA_79f8c9d4 {
    x: u256,
    y: u256,
}