pub fn input_predicate_data<T>(index: u64) -> Option<T>
where
    T: AbiDecode,
Expand description

Gets the predicate data from the input at index.

Arguments

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

Returns

  • [Option] - The predicate data of the input at index.

Examples

use std::inputs::input_predicate_data;

fn foo() {
    let input_predicate_data: u64 = input_predicate_data::<u64>(0).unwrap();
    assert(input_predicate_data == 100);
}