Skip to content

Commit fb00366

Browse files
committed
fix: show tx without input addres. Show type of address for tx out
1 parent a5b9df2 commit fb00366

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

public/views/transaction.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,30 @@ <h1>
2222
<tr>
2323
<td width="45%">
2424
<ul class="list-unstyled" data-ng-repeat="vin in tx.vin" data-ng-show="!tx.isCoinBase">
25-
<li><a href="/#!/address/{{vin.addr}}">{{vin.addr}}</a> <span class="pull-right badge">{{vin.value}} BTC</span></li>
25+
<li>
26+
<span data-ng-show="!vin.addr">No parse address</span>
27+
<a data-ng-show="vin.addr" href="/#!/address/{{vin.addr}}">{{vin.addr}}</a>
28+
<span class="pull-right badge">{{vin.value}} BTC</span>
29+
</li>
2630
</ul>
2731
<div data-ng-show="tx.isCoinBase">
2832
No Inputs (Newly Generated isCoinBasens)
2933
</div>
3034
</td>
3135
<td width="10%" style="text-align: center;"><span class="glyphicon glyphicon-chevron-right">&nbsp;</span></td>
3236
<td width="45%">
33-
<div data-ng-repeat="vout in tx.vout">
34-
<ul class="list-unstyled" data-ng-repeat="addr in vout.scriptPubKey.addresses">
35-
<li><a href="/#!/address/{{addr}}">{{addr}}</a> <span class="pull-right badge">{{vout.value}} BTC</span></li>
36-
</ul>
37-
</div>
37+
<table class="table table-condensed">
38+
<tbody>
39+
<tr data-ng-repeat="vout in tx.vout">
40+
<td><b>{{vout.scriptPubKey.type}}</b></td>
41+
<td>
42+
<ul class="list-unstyled" data-ng-repeat="addr in vout.scriptPubKey.addresses">
43+
<li><a href="/#!/address/{{addr}}">{{addr}}</a> <span class="pull-right badge">{{vout.value}} BTC</span></li>
44+
</ul>
45+
</td>
46+
</tr>
47+
</tbody>
48+
</table>
3849
</td>
3950
</tr>
4051
</tbody>

0 commit comments

Comments
 (0)