Function std::outputs::output_asset_to
pub fn output_asset_to(index: u64) -> Option<Address>
Expand description
Returns the receiver of the output.
Arguments
index
: [u64] - The index of the output to get the receiver of.
Returns
- [Option] - The receiver of the output. None otherwise.
Reverts
- When the output type is unrecognized. This should never happen.
Examples
use std::outputs::output_asset_to;
fn foo() {
let output_receiver = output_asset_to(0);
log(output_receiver);
}