Open lrettig opened 3 days ago
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:
call
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:
RETURN
REVERT
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:EVM achieves this using the
RETURN
andREVERT
opcodes. Solana has syscalls that are very similar to these. Here are some helpful resources: