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 --- src/lib/login/existing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/login/existing.rs') diff --git a/src/lib/login/existing.rs b/src/lib/login/existing.rs index efe187e..e60621d 100644 --- a/src/lib/login/existing.rs +++ b/src/lib/login/existing.rs @@ -208,7 +208,7 @@ async fn get_signer( Duration::from_secs(10 * 60), None, )?; - if let Some(public_key) = npub.clone().and_then(|npub| PublicKey::parse(npub).ok()) { + if let Some(public_key) = npub.clone().and_then(|npub| PublicKey::parse(&npub).ok()) { s.non_secure_set_user_public_key(public_key)?; let signer: Arc = Arc::new(s); Ok((signer, public_key)) -- cgit v1.2.3