OSDN Git Service

fixed the gas calculation.
authorZhiting Lin <zlin035@uottawa.ca>
Tue, 9 Oct 2018 10:06:47 +0000 (18:06 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Tue, 9 Oct 2018 10:06:47 +0000 (18:06 +0800)
src/features/transactions/components/Show.jsx

index 003cf76..dff40ab 100644 (file)
@@ -34,7 +34,7 @@ class Show extends BaseShow {
       item.confirmations = confirmation
 
       const btmOutput = item.outputs.reduce((sum, output) => {
-        if (output.type === 'control' && output.assetId === btmID) {
+        if ((output.type === 'control' || output.type === 'retire')&& output.assetId === btmID) {
           sum += output.amount
         }
         return sum