Skip to content

Commit

Permalink
Merge pull request #51 from Ximik/minor-fixes
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
buffrr authored Dec 11, 2024
2 parents c822c60 + 516967b commit eedff19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit eedff19

Please sign in to comment.