Skip to content

Commit 7d7e7ec

Browse files
committed
fix bech32 imports
1 parent 482202e commit 7d7e7ec

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

crates/nostr-sdk/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
3333
3434
use nostr_sdk::prelude::*;
3535
use nostr_sdk::key::XOnlyPublicKey;
36-
use crate::nostr_sdk::prelude::nip19::FromBech32;
37-
use crate::nostr_sdk::prelude::nip19::ToBech32;
3836
3937
#[tokio::main]
4038
async fn main() -> Result<()> {

crates/nostr-sdk/examples/client-with-opts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4};
55

66
use nostr_sdk::key::SecretKey;
77
use nostr_sdk::nips::nip04::decrypt;
8-
use nostr_sdk::prelude::nip19::FromBech32;
8+
use nostr_sdk::prelude::FromBech32;
99
use nostr_sdk::prelude::*;
1010

1111
const BECH32_SK: &str = "nsec1ufnus6pju578ste3v90xd5m2decpuzpql2295m3sknqcjzyys9ls0qlc85";

crates/nostr-sdk/examples/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT software license
33

44
use nostr_sdk::key::SecretKey;
5-
use nostr_sdk::prelude::nip19::FromBech32;
5+
use nostr_sdk::prelude::FromBech32;
66
use nostr_sdk::prelude::*;
77

88
const BECH32_SK: &str = "nsec1ufnus6pju578ste3v90xd5m2decpuzpql2295m3sknqcjzyys9ls0qlc85";

crates/nostr-sdk/examples/nostr-connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use nostr_sdk::key::SecretKey;
88
use nostr_sdk::key::XOnlyPublicKey;
99
use nostr_sdk::nips::nip46::NostrConnectMetadata;
1010
use nostr_sdk::nips::nip46::NostrConnectURI;
11-
use nostr_sdk::prelude::nip19::FromBech32;
11+
use nostr_sdk::prelude::FromBech32;
1212
use nostr_sdk::prelude::*;
1313

1414
const APP_SECRET_KEY: &str = "nsec1j4c6269y9w0q2er2xjw8sv2ehyrtfxq3jwgdlxj6qfn8z4gjsq5qfvfk99";

crates/nostr-sdk/src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ impl Client {
829829
/// ```rust,no_run
830830
/// use nostr::Keys;
831831
/// use nostr_sdk::key::XOnlyPublicKey;
832-
/// use nostr_sdk::prelude::nip19::FromBech32;
832+
/// use nostr_sdk::prelude::FromBech32;
833833
/// use nostr_sdk::prelude::*;
834834
/// # #[tokio::main]
835835
/// # async fn main() {

0 commit comments

Comments
 (0)