mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
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:
+6
-4
@@ -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()),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user