Function std::inputs::input_predicate_data_length
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 isInput::Coin
orInput::Message
, elseNone
.
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);
}