From 694325fa25e281b1a4c9d7f275f1a8e0f1ad7abf Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 11 Nov 2024 13:08:35 +0000 Subject: chore: bump rust-nostr v0.36 bump all rust-nostr packages to latest issued version. there have been some breaking changes to nip46 and this applies these changes. --- src/lib/git_events.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/lib/git_events.rs') diff --git a/src/lib/git_events.rs b/src/lib/git_events.rs index 2adc205..29c4cf2 100644 --- a/src/lib/git_events.rs +++ b/src/lib/git_events.rs @@ -1,12 +1,11 @@ -use std::str::FromStr; +use std::{str::FromStr, sync::Arc}; use anyhow::{bail, Context, Result}; use nostr::nips::{nip01::Coordinate, nip10::Marker, nip19::Nip19}; use nostr_sdk::{ - hashes::sha1::Hash as Sha1Hash, Event, EventBuilder, EventId, FromBech32, Kind, PublicKey, Tag, - TagKind, TagStandard, UncheckedUrl, + hashes::sha1::Hash as Sha1Hash, Event, EventBuilder, EventId, FromBech32, Kind, NostrSigner, + PublicKey, Tag, TagKind, TagStandard, UncheckedUrl, }; -use nostr_signer::NostrSigner; use crate::{ cli_interactor::{Interactor, InteractorPrompt, PromptInputParms}, @@ -86,7 +85,7 @@ pub async fn generate_patch_event( root_commit: &Sha1Hash, commit: &Sha1Hash, thread_event_id: Option, - signer: &nostr_sdk::NostrSigner, + signer: &Arc, repo_ref: &RepoRef, parent_patch_event_id: Option, series_count: Option<(u64, u64)>, @@ -309,7 +308,7 @@ pub async fn generate_cover_letter_and_patch_events( cover_letter_title_description: Option<(String, String)>, git_repo: &Repo, commits: &[Sha1Hash], - signer: &NostrSigner, + signer: &Arc, repo_ref: &RepoRef, root_proposal_id: &Option, mentions: &[nostr::Tag], @@ -624,7 +623,7 @@ mod tests { Tag::hashtag("root"), ], ) - .to_event(&nostr::Keys::generate())?) + .sign_with_keys(&nostr::Keys::generate())?) } #[test] -- cgit v1.2.3