@@ -25,7 +25,7 @@ import qualified Text.Tabl as Tabl
25
25
26
26
import Pos.Binary.Class (Bi (encode ), toLazyByteString )
27
27
import qualified Pos.Chain.Txp as Core
28
- import Pos.Core (Coeff (.. ), TxSizeLinear (.. ))
28
+ import Pos.Core (Coeff (.. ), TxSizeLinear (.. ), unsafeIntegerToCoin )
29
29
import qualified Pos.Core as Core
30
30
import Pos.Core.Attributes (mkAttributes )
31
31
import Pos.Crypto (SecretKey )
@@ -138,7 +138,7 @@ renderUtxoAndPayees utxo outputs =
138
138
(sortedPayees $ toList outputs) <> footer
139
139
140
140
footer :: [Row ]
141
- footer = [" Total" , " Total" ] : [[T. pack . show . Core. getCoin . utxoBalance $ utxo
141
+ footer = [" Total" , " Total" ] : [[T. pack . show . utxoBalance $ utxo
142
142
, T. pack . show . Core. getCoin . paymentAmount $ outputs
143
143
]]
144
144
@@ -186,9 +186,9 @@ renderTx payees utxo tx =
186
186
in header : (subTable1 `mergeRows` subTable2) <> footer
187
187
188
188
footer :: [Row ]
189
- footer = replicate 4 " Total" : [[T. pack . show . Core. getCoin . utxoBalance $ utxo
189
+ footer = replicate 4 " Total" : [[T. pack . show . utxoBalance $ utxo
190
190
, T. pack . show . Core. getCoin . paymentAmount $ payees
191
- , T. pack . show . Core. getCoin . utxoBalance $ pickedInputs
191
+ , T. pack . show . utxoBalance $ pickedInputs
192
192
, T. pack . show . Core. getCoin . paymentAmount $ txOutputs
193
193
]]
194
194
@@ -324,7 +324,7 @@ feeWasPayed SenderPaysFee originalUtxo originalOutputs tx =
324
324
T. unpack (renderTx originalOutputs originalUtxo tx) <>
325
325
" \n\n "
326
326
)
327
- (< utxoBalance originalUtxo)
327
+ (< unsafeIntegerToCoin ( utxoBalance originalUtxo) )
328
328
(paymentAmount txOutputs)
329
329
feeWasPayed ReceiverPaysFee _ originalOutputs tx =
330
330
let txOutputs = Core. _txOutputs . Core. taTx $ tx
0 commit comments