Skip to content

Commit

Permalink
fix: uuid as isser
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 31, 2024
1 parent 3c56b37 commit 9780b38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/cdk-cln/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,12 +618,16 @@ impl MintLightning for Cln {
None => "any".to_string(),
};

// It seems that the only way to force cln to create a unique offer
// is to encode some random data in the offer
let issuer = Uuid::new_v4().to_string();

let cln_response = cln_client
.call(cln_rpc::Request::Offer(OfferRequest {
absolute_expiry: Some(unix_expiry),
description: Some(description),
label: Some(label),
issuer: None,
issuer: Some(issuer),
quantity_max: None,
recurrence: None,
recurrence_base: None,
Expand Down

0 comments on commit 9780b38

Please sign in to comment.