get scriptSigs working again in expanded view
This commit is contained in:
parent
a554e43c07
commit
0fe359bd1f
@ -32,10 +32,14 @@
|
||||
<p><a (click)="goToAddress(vin.addr)">{{ vin.addr }}</a></p>
|
||||
<div [hidden]="!expanded">
|
||||
<p *ngIf="vin.confirmations"><b>Confirmations</b> {{vin.confirmations}}</p>
|
||||
<div *ngIf="vin.scriptSig" class="ellipsis">
|
||||
<p><b>scriptSig</b></p>
|
||||
<div *ngFor="let item of vin.scriptSig.asm | split:' '">
|
||||
<p>{{item}}</p>
|
||||
<p><b>scriptSig</b></p>
|
||||
<div *ngFor="let item of vin.items">
|
||||
<div *ngIf="item.scriptSig">
|
||||
<div *ngFor="let scriptSig of item.scriptSig.asm | split:' '">
|
||||
<div class="ellipsis">
|
||||
<p>{{ scriptSig }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -60,7 +64,7 @@
|
||||
<p><b>Type</b> {{vout.scriptPubKey.type}}</p>
|
||||
<p><b>scriptPubKey</b></p>
|
||||
<div class="ellipsis">
|
||||
<span>{{vout.scriptPubKey.asm}}</span>
|
||||
<p>{{vout.scriptPubKey.asm}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -48,7 +48,6 @@ export class TransactionComponent {
|
||||
}
|
||||
|
||||
public aggregateItems(items: Array<any>): Array<any> {
|
||||
console.log('aggregateItems called');
|
||||
if (!items) return [];
|
||||
|
||||
let l: number = items.length;
|
||||
@ -105,11 +104,8 @@ export class TransactionComponent {
|
||||
tmp[addr].count++;
|
||||
}
|
||||
|
||||
console.log('tmp is', tmp);
|
||||
|
||||
for (let v in tmp) {
|
||||
let obj: any = tmp[v];
|
||||
console.log('obj isb', obj);
|
||||
obj.value = obj.value || parseInt(obj.valueSat) / this.COIN;
|
||||
ret.push(obj);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user