Correct return types for Rust tx parsing

This commit is contained in:
Rene Vergara 2023-09-29 09:02:05 -05:00
parent 697ce83f7c
commit 31579a6bb2
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -457,14 +457,16 @@ pub extern "C" fn rust_wrapper_tx_parse(
marshall_to_haskell_var(&s_output, out, out_len, RW);
},
None => {
let z = HrawTx { bytes: vec![0], s: false, o: false};
let mut z = Vec::new();
z.push(vec![0]);
marshall_to_haskell_var(&z, out, out_len, RW);
}
}
},
Err(_e) => {
let y = HrawTx { bytes: vec![0], s: false, o: false};
let mut y = Vec::new();
y.push(vec![0]);
marshall_to_haskell_var(&y, out, out_len, RW);
}
}