Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Added more unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Mar 1, 2024
1 parent f252ff1 commit 4d1e1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction-metrics-tracker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod tests {
// We generate a random one
let mut rng = rand::thread_rng();
let random_number: u8 = rng.gen_range(0..=15);
sig[61] = ((*TXN_MASK & 0xf as u16) << 4) as u8 | random_number;
sig[61] = ((*TXN_MASK & 0xf_u16) << 4) as u8 | random_number;
sig[62] = (*TXN_MASK >> 4) as u8;

let track = should_track_transaction(&sig);
Expand Down

0 comments on commit 4d1e1cc

Please sign in to comment.