pub fn input_message_recipient(index: u64) -> Option<Address> 
Expand description

Gets the recipient of the input message at index.

Arguments

  • index: [u64] - The index of the input to check.

Returns

  • [Option] - The recipient of the input message at index, if the input’s type is Input::Message.

Examples

use std::inputs::input_message_recipient;

fn foo() {
    let input_message_recipient = input_message_recipient(0).unwrap();
    assert(input_message_recipient != Address::zero());
}