Skip to content

Commit 5713f43

Browse files
committed
fixup! Add support for sending to human-readable names that resolve to Bolt12 Offers
1 parent 36bda24 commit 5713f43

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ where
742742
hash: Some(payment_hash),
743743
preimage: payment_preimage,
744744
secret: Some(payment_secret),
745-
offer_id,
745+
offer_id: Some(offer_id),
746746
payer_note,
747747
quantity,
748748
};

tests/integration_tests_rust.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ fn simple_bolt12_send_receive() {
721721
} => {
722722
assert!(hash.is_some());
723723
assert!(preimage.is_some());
724-
assert_eq!(offer_id, offer.id());
724+
assert_eq!(offer_id, Some(offer.id()));
725725
assert_eq!(&expected_quantity, qty);
726726
assert_eq!(expected_payer_note.unwrap(), note.clone().unwrap().0);
727727
//TODO: We should eventually set and assert the secret sender-side, too, but the BOLT12
@@ -742,7 +742,7 @@ fn simple_bolt12_send_receive() {
742742
assert!(hash.is_some());
743743
assert!(preimage.is_some());
744744
assert!(secret.is_some());
745-
assert_eq!(offer_id, offer.id());
745+
assert_eq!(offer_id, Some(offer.id()));
746746
},
747747
_ => {
748748
panic!("Unexpected payment kind");
@@ -787,7 +787,7 @@ fn simple_bolt12_send_receive() {
787787
} => {
788788
assert!(hash.is_some());
789789
assert!(preimage.is_some());
790-
assert_eq!(offer_id, offer.id());
790+
assert_eq!(offer_id, Some(offer.id()));
791791
assert_eq!(&expected_quantity, qty);
792792
assert_eq!(expected_payer_note.unwrap(), note.clone().unwrap().0);
793793
//TODO: We should eventually set and assert the secret sender-side, too, but the BOLT12
@@ -811,7 +811,7 @@ fn simple_bolt12_send_receive() {
811811
assert!(hash.is_some());
812812
assert!(preimage.is_some());
813813
assert!(secret.is_some());
814-
assert_eq!(offer_id, offer.id());
814+
assert_eq!(offer_id, Some(offer.id()));
815815
},
816816
_ => {
817817
panic!("Unexpected payment kind");

0 commit comments

Comments
 (0)