pub fn input_message_data(index: u64, offset: u64) -> Option<Bytes> 
Expand description

Gets the data of the input message at index.

Arguments

  • index: [u64] - The index of the input to check.
  • offset: [u64] - The offset to start reading the data from.

Returns

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

Examples

use std::inputs::input_message_data;

fn foo() {
    let input_message_data = input_message_data(0, 0).unwrap();
    assert(input_message_data.len() != 0);
}