Public tags: propagate protocol tag to the transaction (#2925)

Fixes #2912
This commit is contained in:
tom goriunov
2025-08-11 15:01:55 +02:00
committed by GitHub
parent 3fd0c96ecd
commit bcf0a6663f
+6
View File
@@ -92,6 +92,7 @@ const TransactionPageContent = () => {
const txTags: Array<TEntityTag> = data?.transaction_tag ?
[ { slug: data.transaction_tag, name: data.transaction_tag, tagType: 'private_tag' as const, ordinal: 1 } ] : [];
if (rollupFeature.isEnabled && rollupFeature.interopEnabled && data?.op_interop) {
if (data.op_interop.init_chain !== undefined) {
txTags.push({ slug: 'relay_tx', name: 'Relay tx', tagType: 'custom' as const, ordinal: 0 });
@@ -101,6 +102,11 @@ const TransactionPageContent = () => {
}
}
const protocolTags = data?.to?.metadata?.tags?.filter(tag => tag.tagType === 'protocol');
if (protocolTags && protocolTags.length > 0) {
txTags.push(...protocolTags);
}
const tags = (
<EntityTags
isLoading={ isPlaceholderData || (tacFeature.isEnabled && tacOperationQuery.isPlaceholderData) }