Skip to content

Commit

Permalink
Merge pull request #23 from ambrosus/fix-part
Browse files Browse the repository at this point in the history
Fix wrong variable used
  • Loading branch information
SigismundSchlomo authored Mar 5, 2024
2 parents db42433 + 93277db commit 605f19b
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 605f19b

Please sign in to comment.