Function std::inputs::input_predicate_length
pub fn input_predicate_length(index: u64) -> Option<u64>
Expand description
Gets the predicate length from the input at index
.
Arguments
index
: [u64] - The index of the input to check.
Returns
- [Option] - The predicate length of the input at
index
, if the input’s type isInput::Coin
orInput::Message
, elseNone
.
Examples
use std::inputs::input_predicate_length;
fn foo() {
let input_predicate_length = input_predicate_length(0);
assert(input_predicate_length.unwrap() != 0u64);
}