From f2640c05eb8d073fa7f03165f00da00db7a04c07 Mon Sep 17 00:00:00 2001 From: tommytrg Date: Thu, 19 Oct 2023 15:57:13 +0200 Subject: [PATCH] PR comments --- validations/src/validations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validations/src/validations.rs b/validations/src/validations.rs index d9799c13f..1623ab9d2 100644 --- a/validations/src/validations.rs +++ b/validations/src/validations.rs @@ -109,7 +109,7 @@ pub fn st_transaction_fee( epoch_constants: EpochConstants, ) -> Result { 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())