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/bin/ngit/sub_commands/init.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/bin/ngit') diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 8f9ff0d..50b8b3c 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs @@ -212,7 +212,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { let mut maintainers_string = if !args.other_maintainers.is_empty() { [args.other_maintainers.clone()].concat().join(" ") } else if repo_ref.is_none() && repo_config_result.is_err() { - signer.public_key().await?.to_bech32()? + signer.get_public_key().await?.to_bech32()? } else { let maintainers = if let Ok(config) = &repo_config_result { config.maintainers.clone() @@ -225,7 +225,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { .collect() } else { //unreachable - vec![signer.public_key().await?.to_bech32()?] + vec![signer.get_public_key().await?.to_bech32()?] }; // add current user if not present if maintainers.iter().any(|m| { @@ -237,9 +237,12 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { }) { maintainers.join(" ") } else { - [maintainers, vec![signer.public_key().await?.to_bech32()?]] - .concat() - .join(" ") + [ + maintainers, + vec![signer.get_public_key().await?.to_bech32()?], + ] + .concat() + .join(" ") } }; 'outer: loop { @@ -263,7 +266,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { } // add current user incase removed if !maintainers.iter().any(|m| user_ref.public_key.eq(m)) { - maintainers.push(signer.public_key().await?); + maintainers.push(signer.get_public_key().await?); } break maintainers; } -- cgit v1.2.3