Function sabre_sdk::execute_entrypoint [−][src]
pub unsafe fn execute_entrypoint<F>(
payload_ptr: WasmPtr,
signer_ptr: WasmPtr,
signature_ptr: WasmPtr,
apply: F
) -> i32 where
F: Fn(&TpProcessRequest<'_>, &mut dyn TransactionContext) -> Result<bool, ApplyError>,
Expand description
-1: Failed to deserialize payload -2: Failed to deserialize signer -3: apply returned InvalidTransaction -4: apply returned InternalError
Safety
This function is unsafe due to the call to WasmBuffer::from_raw which converts a WasmPtr to a WasmBuffer to access location in executor memory