mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Public tags: propagate protocol tag to the transaction (#2925)
Fixes #2912
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user