Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Zajkowski committed Dec 2, 2024
1 parent d92ab5b commit 5f27653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/src/transaction/transaction_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl TransactionV1 {
ttl: Option<TimeDiff>,
) -> Self {
let secret_key = SecretKey::random(rng);
let timestamp = maybe_timestamp.unwrap_or_else(|| Timestamp::random(rng));
let timestamp = maybe_timestamp.unwrap_or_else(|| Timestamp::now());
let ttl_millis = ttl.map_or(
rng.gen_range(60_000..TransactionConfig::default().max_ttl.millis()),
|ttl| ttl.millis(),
Expand Down

0 comments on commit 5f27653

Please sign in to comment.