Skip to content

Commit f3a5675

Browse files
authored
Merge pull request #94 from owl352/feat/title-6and7-types
Title for mnhf and qc tx's
2 parents 076307b + b328d38 commit f3a5675

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

public/js/angularjs-all.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/main.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/vendors.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/src/js/controllers/transactions.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,19 @@ function($scope, $rootScope, $routeParams, $location, Global, Transaction, Trans
7575
};
7676

7777
var _processTX = function(tx) {
78-
tx.vinSimple = _aggregateItems(tx.vin);
79-
tx.voutSimple = _aggregateItems(tx.vout);
78+
if (tx.type !== 6 && tx.type !== 7) {
79+
tx.vinSimple = _aggregateItems(tx.vin);
80+
tx.voutSimple = _aggregateItems(tx.vout);
81+
} else {
82+
const title = [{
83+
addr: tx.type === 6 ? 'QcTx' : 'MnHfTx',
84+
notAddr: true,
85+
count: 1,
86+
value: 0
87+
}];
88+
tx.vinSimple = title;
89+
tx.voutSimple = title;
90+
}
8091
};
8192

8293
var _paginate = function(data) {

0 commit comments

Comments
 (0)