Skip to content

Commit

Permalink
minor fixes made
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycho-Pirate committed Feb 17, 2025
1 parent 7edd30b commit cf18c60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions lampo-common/src/model/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ pub mod response {
let network = offer
.chains()
.first()
.and_then(|hash| Network::from_chain_hash(*hash))
.or(Some(Network::Bitcoin));
.and_then(|hash| Network::from_chain_hash(*hash));

let paths = offer
.paths()
Expand Down
3 changes: 0 additions & 3 deletions tests/tests/src/lampo_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,5 @@ pub fn decode_offer_hex() -> error::Result<()> {
decode.offer_id,
"34460869549e37748ceaabdcff6284a98266c18052ab2a7e9eb5a1af0a5e5b7d"
);
// Checks if all the character inside the offer_id is hex.
let res = decode.offer_id.chars().all(|c| c.is_ascii_hexdigit());
assert!(res);
Ok(())
}

0 comments on commit cf18c60

Please sign in to comment.