Skip to content

[BUG] Multiple tags are being selected for Dedup keys for Addressable evnets/Parametrized replacable events #478

@kushagra0902

Description

@kushagra0902

Describe the bug
For "addressable events" (formerly called parameterized replacable events), for extracting dedup keys for metadata of the events, multiple tags are being selected.

For Example:
For events with tags [d, "hello", "ball"]
current implementation takes ["hello", "ball"].

Expected behavior
Accoridng to NIP specs, dedup key should be:
["hello"].

Screenshots
N/A

System (please complete the following information):
General

Logs
N/A

Files to see
The bugged implementation logic is in parametrized-replacable-events-strategy.ts at
const [, ...deduplication] = event.tags.find((tag) => tag.length >= 2 && tag[0] === EventTags.Deduplication) ?? [null, '']

Additional context
This might result in unexpected behavior as now the event row may not be replaced.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions