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':
 | 
			
		||||
      default:
 | 
			
		||||
        return 'OP_RETURN';
 | 
			
		||||
      default:
 | 
			
		||||
        return value.toUpperCase();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user