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

Gets the sender of the input message at index.

Arguments

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

Returns

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

Examples

use std::inputs::input_message_sender;

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