show 0 fee for coinbase transactions

This commit is contained in:
julian 2024-11-21 12:13:34 -06:00 committed by julian-CStack
parent 0ce0350039
commit 91de7ddbc0

View file

@ -129,6 +129,10 @@ class TransactionV2 {
return fee; return fee;
} }
if (isCoinbase()) {
return Amount.zeroWith(fractionDigits: fractionDigits);
}
final inSum = final inSum =
inputs.map((e) => e.value).reduce((value, element) => value += element); inputs.map((e) => e.value).reduce((value, element) => value += element);
final outSum = outputs final outSum = outputs