Skip to content

Commit 97c3377

Browse files
authored
set the required fee (#6)
1 parent f0fdaa3 commit 97c3377

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wsapi/wsapi.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,7 @@ func factoidTxToTransaction(t interfaces.ITransaction) (
15711571

15721572
if r.TotalInputs <= r.TotalOutputs+r.TotalECOutputs {
15731573
r.FeesPaid = 0
1574+
r.FeesRequired = feesRequired(t)
15741575
} else {
15751576
r.FeesPaid = r.TotalInputs - (r.TotalOutputs + r.TotalECOutputs)
15761577
}

0 commit comments

Comments
 (0)