Skip to content

Commit

Permalink
Fix wrong variable used
Browse files Browse the repository at this point in the history
  • Loading branch information
SigismundSchlomo committed Mar 5, 2024
1 parent db42433 commit 93277db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ethcore/types/src/receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 93277db

Please sign in to comment.