mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 18:03:00 +01:00
parent
d9803e3f3d
commit
76238f5943
@ -128,7 +128,10 @@
|
||||
</a>
|
||||
</ng-template>
|
||||
<ng-template #defaultscriptpubkey_type>
|
||||
<a placement="bottom" [ngbTooltip]="vout.scriptpubkey | hex2ascii">{{ vout.scriptpubkey_type | scriptpubkeyType }}</a> <span class="badge badge-secondary scriptmessage">{{ vout.scriptpubkey_asm | hex2ascii }}</span>
|
||||
<ng-template [ngIf]="vout.scriptpubkey_type === 'op_return'" [ngIfElse]="otherPubkeyType">
|
||||
<a placement="bottom" [ngbTooltip]="vout.scriptpubkey | hex2ascii">OP_RETURN</a> <span class="badge badge-secondary scriptmessage">{{ vout.scriptpubkey_asm | hex2ascii }}</span>
|
||||
</ng-template>
|
||||
<ng-template #otherPubkeyType>{{ vout.scriptpubkey_type | scriptpubkeyType }}</ng-template>
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
</td>
|
||||
|
@ -9,9 +9,12 @@ export class ScriptpubkeyTypePipe implements PipeTransform {
|
||||
switch (value) {
|
||||
case 'fee':
|
||||
return 'Transaction fee';
|
||||
case 'p2pk':
|
||||
return 'P2PK';
|
||||
case 'op_return':
|
||||
return 'OP_RETURN';
|
||||
default:
|
||||
return 'OP_RETURN';
|
||||
return value.toUpperCase();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user