diff --git a/librustzcash-wrapper/src/lib.rs b/librustzcash-wrapper/src/lib.rs index 04eb794..0433ee7 100644 --- a/librustzcash-wrapper/src/lib.rs +++ b/librustzcash-wrapper/src/lib.rs @@ -2145,20 +2145,20 @@ pub extern "C" fn rust_wrapper_create_transaction( out_len: &mut usize){ let sap_input: Vec = marshall_from_haskell_var(s_input, s_input_len, RW); let sap_anchor_in: Vec = marshall_from_haskell_var(sap_wit, sap_wit_len, RW); - let sap_anchor = SaplingAnchor::from_bytes(to_array(sap_anchor_in)); + let sap_anchor = Node::from_bytes(to_array(sap_anchor_in)); let sapling_anchor = if sap_anchor.is_some().into() { - Some(sap_anchor.unwrap()) + Some(SaplingAnchor::from(sap_anchor.unwrap())) } else { None }; println!("{:?}", sapling_anchor); let orch_input: Vec = marshall_from_haskell_var(o_input, o_input_len, RW); let orch_anchor_in : Vec = marshall_from_haskell_var(orch_wit, orch_wit_len, RW); - let orch_anchor = OrchardAnchor::from_bytes(to_array(orch_anchor_in)); + let orch_anchor = MerkleHashOrchard::from_bytes(&to_array(orch_anchor_in)); let orchard_anchor = if orch_anchor.is_some().into() { - Some(orch_anchor.unwrap()) + Some(OrchardAnchor::from(orch_anchor.unwrap())) } else { None };