fix: create_announcement_event test helper uses correct NIP-34 tag format

NIP-34 specifies single clone/relays tags with multiple values, not multiple
tags with single values. Update test helper to match spec.
This commit is contained in:
DanConwayDev
2026-01-21 12:26:51 +00:00
parent 487b9496c0
commit 780d09b0c1
+6 -4
View File
@@ -495,17 +495,19 @@ mod tests {
vec![identifier.to_string()],
)];
for url in clone_urls {
// NIP-34: Single clone tag with multiple values
if !clone_urls.is_empty() {
tags.push(Tag::custom(
nostr_sdk::TagKind::Clone,
vec![url.to_string()],
clone_urls.iter().map(|s| s.to_string()),
));
}
for relay in relays {
// NIP-34: Single relays tag with multiple values
if !relays.is_empty() {
tags.push(Tag::custom(
nostr_sdk::TagKind::Relays,
vec![relay.to_string()],
relays.iter().map(|s| s.to_string()),
));
}