Skip to content

Commit

Permalink
Update transactions.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder83singh committed Dec 10, 2024
1 parent 7d1ffa6 commit 91592aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/tests/transactions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::imports::*;
use kaspa_wallet_core::tx::mass::MassCalculator;
use kaspa_wallet_core::utxo::NetworkParams;

#[test]
fn test_generic_transaction_mass() {
Expand Down Expand Up @@ -61,7 +60,7 @@ fn test_generic_transaction_mass() {
);

for network in Network::iter() {
let calc = MassCalculator::new(&network.into(), NetworkParams::from(network.into()));
let calc = MassCalculator::new(&network.into());
let mass = calc.calc_compute_mass_for_unsigned_consensus_transaction(&tx, 1);
println!("compute transaction mass for {} is {}", network, mass);
}
Expand Down

0 comments on commit 91592aa

Please sign in to comment.