Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fixes #51

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node/src/bin/space-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ async fn handle_commands(
}
Commands::EstimateBid { target } => {
let response = cli.client.estimate_bid(target).await?;
println!("{} sat", Amount::from_sat(response).to_string());
println!("{} sat", Amount::from_sat(response).to_sat());
}
Commands::GetSpace { space } => {
let space_hash = hash_space(&space).map_err(|e| ClientError::Custom(e.to_string()))?;
Expand Down
4 changes: 2 additions & 2 deletions protocol/src/slabel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::errors::Error;
pub const MAX_LABEL_LEN: usize = 62;
pub const PUNYCODE_PREFIX: &[u8] = b"xn--";

#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct SLabel([u8; MAX_LABEL_LEN + 1]);

#[cfg(feature = "bincode")]
Expand Down Expand Up @@ -87,7 +87,7 @@ impl<'de> Deserialize<'de> for SLabel {
}
}

#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct SLabelRef<'a>(pub &'a [u8]);

impl AsRef<[u8]> for SLabel {
Expand Down
Loading