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