From 948fe972eb2bddf187b79f2673a091b6331cfd90 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 1 Apr 2025 14:31:34 +0100 Subject: chore: bump rust-nostr v0.37 ~> v0.40 and fix all of the breaking changes --- test_utils/src/git.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test_utils/src/git.rs') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 474fc59..5942a54 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -9,7 +9,7 @@ use std::{ use anyhow::{Context, Result}; use git2::{Branch, Oid, RepositoryInitOptions, Signature, Time}; -use nostr::nips::nip01::Coordinate; +use nostr::nips::{nip01::Coordinate, nip19::Nip19Coordinate}; use nostr_sdk::{Kind, RelayUrl, ToBech32}; use crate::generate_repo_ref_event; @@ -23,10 +23,12 @@ pub struct GitTestRepo { impl Default for GitTestRepo { fn default() -> Self { let repo_event = generate_repo_ref_event(); - let coordinate = Coordinate { - kind: Kind::GitRepoAnnouncement, - public_key: repo_event.pubkey, - identifier: repo_event.tags.identifier().unwrap().to_string(), + let coordinate = Nip19Coordinate { + coordinate: Coordinate { + kind: Kind::GitRepoAnnouncement, + public_key: repo_event.pubkey, + identifier: repo_event.tags.identifier().unwrap().to_string(), + }, relays: vec![ RelayUrl::parse("ws://localhost:8055").unwrap(), RelayUrl::parse("ws://localhost:8056").unwrap(), -- cgit v1.2.3