From f42d71b164ceec3174d557bcd345171be6d29328 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Thu, 17 Oct 2024 21:18:43 -0400 Subject: [PATCH] clippy --- consensus/rules/src/miner_tx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/rules/src/miner_tx.rs b/consensus/rules/src/miner_tx.rs index 5221ee5..bb3b004 100644 --- a/consensus/rules/src/miner_tx.rs +++ b/consensus/rules/src/miner_tx.rs @@ -68,7 +68,7 @@ pub fn calculate_block_reward( .unwrap(); let effective_median_bw: u128 = median_bw.try_into().unwrap(); - (((base_reward as u128 * multiplicand) / effective_median_bw) / effective_median_bw) + (((u128::from(base_reward) * multiplicand) / effective_median_bw) / effective_median_bw) .try_into() .unwrap() }