Skip to content

Commit

Permalink
Fix MTP in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Oct 29, 2024
1 parent c12e662 commit 04f8138
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/consensus/src/types/utxo_set.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ mod tests {
cached: false
},
block_height: 9,
median_time_past: 1231473279,
median_time_past: 1231470988,
is_coinbase: true
}
}
Expand All @@ -214,7 +214,8 @@ mod tests {
fn test_poseidon1() {
let outpoint: OutPoint = get_outpoint();
let outpoint_hash = PoseidonTrait::new().update_with(outpoint).finalize();
let expected: felt252 = 0x3945D2584EE5EF0B482B70CD63E0E8CD18827CB348F839D1E6EB8ECBB2B397D;
let expected: felt252 =
761592244424273723796345514960638980240531938129162865626185984897576522513;
assert_eq!(outpoint_hash, expected);
}
}

0 comments on commit 04f8138

Please sign in to comment.