From 8638b321fdff94d034ec912ecd0910b6f564ff04 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 24 Jul 2024 16:37:10 +0100 Subject: refactor: use nip34 kinds from rust-nostr instead of Kind::Custom(u16) as v33 of rust-nostr introduced them --- test_utils/src/git.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test_utils/src/git.rs') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 7aa7e84..5e8aed5 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -8,7 +8,7 @@ use git2::{Oid, RepositoryInitOptions, Signature, Time}; use nostr::nips::nip01::Coordinate; use nostr_sdk::{Kind, ToBech32}; -use crate::{generate_repo_ref_event, REPOSITORY_KIND}; +use crate::generate_repo_ref_event; pub struct GitTestRepo { pub dir: PathBuf, @@ -19,7 +19,7 @@ impl Default for GitTestRepo { fn default() -> Self { let repo_event = generate_repo_ref_event(); let coordinate = Coordinate { - kind: Kind::Custom(REPOSITORY_KIND), + kind: Kind::GitRepoAnnouncement, public_key: repo_event.author(), identifier: repo_event.identifier().unwrap().to_string(), relays: vec![ -- cgit v1.2.3