Skip to content

Commit 81a8515

Browse files
authored
Public tags: propagate protocol tag to the transaction (#2925)
Fixes #2912
1 parent e318ef0 commit 81a8515

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ui/pages/Transaction.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const TransactionPageContent = () => {
9292

9393
const txTags: Array<TEntityTag> = data?.transaction_tag ?
9494
[ { slug: data.transaction_tag, name: data.transaction_tag, tagType: 'private_tag' as const, ordinal: 1 } ] : [];
95+
9596
if (rollupFeature.isEnabled && rollupFeature.interopEnabled && data?.op_interop) {
9697
if (data.op_interop.init_chain !== undefined) {
9798
txTags.push({ slug: 'relay_tx', name: 'Relay tx', tagType: 'custom' as const, ordinal: 0 });
@@ -101,6 +102,11 @@ const TransactionPageContent = () => {
101102
}
102103
}
103104

105+
const protocolTags = data?.to?.metadata?.tags?.filter(tag => tag.tagType === 'protocol');
106+
if (protocolTags && protocolTags.length > 0) {
107+
txTags.push(...protocolTags);
108+
}
109+
104110
const tags = (
105111
<EntityTags
106112
isLoading={ isPlaceholderData || (tacFeature.isEnabled && tacOperationQuery.isPlaceholderData) }

0 commit comments

Comments
 (0)