Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Complex return type in cross contract calls #1042

Open
rjnrohit opened this issue Apr 28, 2023 · 0 comments
Open

Complex return type in cross contract calls #1042

rjnrohit opened this issue Apr 28, 2023 · 0 comments
Assignees

Comments

@rjnrohit
Copy link
Contributor

rjnrohit commented Apr 28, 2023

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,
}
@rjnrohit rjnrohit self-assigned this May 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant