From 93277dbc1104792b09851ee343354f4b56991141 Mon Sep 17 00:00:00 2001 From: Alex Kuznietsov Date: Tue, 5 Mar 2024 14:54:30 +0000 Subject: [PATCH] Fix wrong variable used --- crates/ethcore/types/src/receipt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ethcore/types/src/receipt.rs b/crates/ethcore/types/src/receipt.rs index 5c031e1e0e..afa48c71ce 100644 --- a/crates/ethcore/types/src/receipt.rs +++ b/crates/ethcore/types/src/receipt.rs @@ -243,7 +243,7 @@ impl TypedReceipt { //Assume that transaction is checked already let (fees_value, _) = receipt.gas_used.overflowing_mul(gas_price); let governance_part = fees_value.saturating_mul(part) / U256::from(1_000_000); - let validator_part = fees_value.saturating_sub(part); + let validator_part = fees_value.saturating_sub(governance_part); Some((validator_part, governance_part)) }, _ => None,