Function promise_result_as_success

Source
pub fn promise_result_as_success() -> Option<Vec<u8>>
Expand description

Returns the result of the promise if successful. Otherwise returns None. Fails if called outside a callback that received 1 promise result. Uses low-level crate::env::promise_results_count and crate::env::promise_result.