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

Gets the predicate data length from the input at index.

Arguments

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

Returns

  • [Option] - The predicate data length of the input at index, if the input’s type is Input::Coin or Input::Message, else None.

Examples

use std::inputs::input_predicate_data_length;

fn foo() {
    let input_predicate_data_length = input_predicate_data_length(0);
    assert(input_predicate_data_length.unwrap() != 0_u64);
}