mirror of
https://github.com/mempool/mempool.git
synced 2026-08-20 13:28:00 +02:00
Fix crash when toggling coinbase tx details
This commit is contained in:
parent
75972f709e
commit
4d6935cc32
2 changed files with 3 additions and 3 deletions
|
|
@ -174,7 +174,7 @@
|
|||
<td style="text-align: left;">
|
||||
<ng-container *ngFor="let witness of vin.witness; index as windex">
|
||||
<p class="witness-item">
|
||||
<ng-container *ngIf="tx['_sigmap'][witness] as sigInfo">
|
||||
<ng-container *ngIf="tx['_sigmap']?.[witness] as sigInfo">
|
||||
<span class="sig sig-key sig-inline sighash-{{sigInfo.sig.sighash}}"
|
||||
[class.hovered]="selectedSig && selectedSig.txIndex === i && selectedSig.vindex === vindex && selectedSig.sig === sigInfo.sig"
|
||||
(mouseenter)="showSigInfo(i, vindex, sigInfo.sig)"
|
||||
|
|
@ -195,7 +195,7 @@
|
|||
{{ witness }}
|
||||
}
|
||||
} @else if (witness) {
|
||||
<ng-container *ngIf="tx['_sigmap'][witness]?.sig.sighash !== 0 && tx['_sigmap'][witness] as sigInfo; else plainSig">
|
||||
<ng-container *ngIf="tx['_sigmap']?.[witness]?.sig.sighash !== 0 && tx['_sigmap']?.[witness] as sigInfo; else plainSig">
|
||||
<span class="witness">
|
||||
{{witness.slice(0, -2)}}<span class="sig sighash-{{sigInfo.sig.sighash}}"
|
||||
[class.hovered]="selectedSig && selectedSig.txIndex === i && selectedSig.vindex === vindex && selectedSig.sig === sigInfo.sig"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
@for (instruction of instructions; track instruction.instruction) {
|
||||
<span [class]='opcodeStyles.get(instruction.instruction)'>OP_{{instruction.instruction}}</span>
|
||||
@for (arg of instruction.args; track arg) {
|
||||
<ng-container *ngIf="annotations.signatures[arg] as sigInfo; else plainArg">
|
||||
<ng-container *ngIf="annotations.signatures?.[arg] as sigInfo; else plainArg">
|
||||
<span class="sig sig-key sig-inline sighash-{{sigInfo.sig.sighash}}"
|
||||
[class.hovered]="annotations.selectedSig && annotations.selectedSig === sigInfo.sig"
|
||||
(mouseenter)="doShowSigInfo(sigInfo.sig)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue