fix tests

This commit is contained in:
Rostyslav Tyshko 2025-04-09 02:03:01 -04:00
parent b3d96d8b53
commit e75db3b73d

View File

@ -262,6 +262,7 @@ mod tests {
use super::*;
use std::{fmt::format, path::PathBuf};
use secp256k1_zkp::Tweak;
use rand::Rng;
use storage::transaction::{Transaction, TxKind};
use transaction_mempool::TransactionMempool;
@ -289,6 +290,8 @@ mod tests {
utxo_commitments_spent_hashes: Vec<[u8; 32]>,
utxo_commitments_created_hashes: Vec<[u8; 32]>,
) -> Transaction {
let mut rng = rand::thread_rng();
Transaction {
hash,
tx_kind: TxKind::Private,