Function ergo::ergo_lib_ergo_tree_with_constant
source · #[no_mangle]
pub unsafe extern "C" fn ergo_lib_ergo_tree_with_constant(
ergo_tree_ptr: ConstErgoTreePtr,
index: usize,
constant_ptr: ConstConstantPtr,
ergo_tree_out: *mut ErgoTreePtr
) -> ErrorPtr
Expand description
Returns new ErgoTree instance with a new constant value for a given index in constants list (as
stored in serialized ErgoTree), or an error. Note that the original ErgoTree instance
pointed-at by ergo_tree_ptr
is untouched.