Skip to content

Commit

Permalink
Merge pull request #94 from owl352/feat/title-6and7-types
Browse files Browse the repository at this point in the history
Title for mnhf and qc tx's
  • Loading branch information
pshenmic authored Sep 26, 2024
2 parents 076307b + b328d38 commit f3a5675
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions public/js/angularjs-all.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/js/main.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/js/vendors.min.js

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions public/src/js/controllers/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,19 @@ function($scope, $rootScope, $routeParams, $location, Global, Transaction, Trans
};

var _processTX = function(tx) {
tx.vinSimple = _aggregateItems(tx.vin);
tx.voutSimple = _aggregateItems(tx.vout);
if (tx.type !== 6 && tx.type !== 7) {
tx.vinSimple = _aggregateItems(tx.vin);
tx.voutSimple = _aggregateItems(tx.vout);
} else {
const title = [{
addr: tx.type === 6 ? 'QcTx' : 'MnHfTx',
notAddr: true,
count: 1,
value: 0
}];
tx.vinSimple = title;
tx.voutSimple = title;
}
};

var _paginate = function(data) {
Expand Down

0 comments on commit f3a5675

Please sign in to comment.