Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call return values #36

Closed
lrettig opened this issue Jul 2, 2024 · 0 comments · Fixed by #175
Closed

Call return values #36

lrettig opened this issue Jul 2, 2024 · 0 comments · Fixed by #175
Labels
Milestone

Comments

@lrettig
Copy link
Contributor

lrettig commented Jul 2, 2024

To keep things simple, the call syscall was implemented without support for a return value (#5). We probably want to add additional syscalls with signatures like:

pub fn set_return_value(buf: *const u8, length: u64);
pub fn get_return_value(buf: *mut u8, length: u64);

EVM achieves this using the RETURN and REVERT opcodes. Solana has syscalls that are very similar to these. Here are some helpful resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant