Fix missing bare multisig labels
This commit is contained in:
@@ -33,6 +33,8 @@ export class AddressLabelsComponent implements OnChanges {
|
||||
this.handleAddress();
|
||||
} else if (this.vin) {
|
||||
this.handleVin();
|
||||
} else if (this.vout) {
|
||||
this.handleVout();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,4 +63,14 @@ export class AddressLabelsComponent implements OnChanges {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
handleVout() {
|
||||
const address = new AddressTypeInfo(this.network || 'mainnet', this.vout.scriptpubkey_address, this.vout.scriptpubkey_type as AddressType, undefined, this.vout);
|
||||
if (address?.scripts.size) {
|
||||
const script = address?.scripts.values().next().value;
|
||||
if (script.template?.label) {
|
||||
this.label = script.template.label;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user