diff --git a/src/merkle_tree.cairo b/src/merkle_tree.cairo index 83290afc..0cbe3752 100644 --- a/src/merkle_tree.cairo +++ b/src/merkle_tree.cairo @@ -9,7 +9,7 @@ pub fn merkle_root(ref txids: Array>) -> u256 { let mut i: u32 = 0; while i != 8 { let element: u256 = (*txid[i]).into(); - root += shl(element, (8 * i)); + root += shl(element, (32 * i)); i += 1; }; diff --git a/src/utils.cairo b/src/utils.cairo index e25d0642..025124b2 100644 --- a/src/utils.cairo +++ b/src/utils.cairo @@ -115,7 +115,6 @@ const TWO_POW_96: u128 = 0x1000000000000000000000000; pub fn double_sha256(a: @Array, b: @Array) -> Array { let mut input1: Array = array![]; - input1.append_span(a.span()); input1.append_span(b.span());