ink_env

Function return_value

source
pub fn return_value<R>(return_flags: ReturnFlags, return_value: &R)
where R: Encode,
Expand description

Returns the value back to the caller of the executed contract.

ยงNote

When the std feature is used, the contract is allowed to return normally. This feature should only be used for integration tests.