Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Oct 19, 2023
1 parent 120b2b4 commit f2640c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validations/src/validations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn st_transaction_fee(
epoch_constants: EpochConstants,
) -> Result<u64, failure::Error> {
let in_value = transaction_inputs_sum(&st_tx.body.inputs, utxo_diff, epoch, epoch_constants)?;
let out_value = &st_tx.body.output.value;
let out_value = &st_tx.body.output.value - st_tx.body.change;

if out_value > &in_value {
Err(TransactionError::NegativeFee.into())
Expand Down

0 comments on commit f2640c0

Please sign in to comment.