Add return type for AttesationDataAndCustodyBit hash_tree_root

This commit is contained in:
Kirk Baird
2019-01-25 14:39:51 +11:00
parent 5a2cf6219e
commit f67facae88

View File

@@ -31,7 +31,7 @@ impl Decodable for AttestationDataAndCustodyBit {
}
impl TreeHash for AttestationDataAndCustodyBit {
fn hash_tree_root(&self) {
fn hash_tree_root(&self) -> Vec<u8> {
let result: Vec<u8> = vec![];
result.append(&mut self.data.hash_tree_root());
// TODO: add bool ssz