From 3ed9a85051084c5747f6d21d3059830ea548904c Mon Sep 17 00:00:00 2001 From: Rigidity Date: Wed, 20 Nov 2024 16:32:05 -0500 Subject: [PATCH] THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU YAK --- crates/sage-wallet/src/wallet/offer/make_offer.rs | 6 +++++- crates/sage-wallet/src/wallet/offer/unlock_assets.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/sage-wallet/src/wallet/offer/make_offer.rs b/crates/sage-wallet/src/wallet/offer/make_offer.rs index e76545b8..2379cd02 100644 --- a/crates/sage-wallet/src/wallet/offer/make_offer.rs +++ b/crates/sage-wallet/src/wallet/offer/make_offer.rs @@ -93,7 +93,11 @@ impl Wallet { builder = builder.request( &mut ctx, &settlement, - vec![Payment::new(p2_puzzle_hash, taker.xch)], + vec![Payment::with_memos( + p2_puzzle_hash, + taker.xch, + vec![p2_puzzle_hash.into()], + )], )?; } diff --git a/crates/sage-wallet/src/wallet/offer/unlock_assets.rs b/crates/sage-wallet/src/wallet/offer/unlock_assets.rs index 1f083836..ec5817a8 100644 --- a/crates/sage-wallet/src/wallet/offer/unlock_assets.rs +++ b/crates/sage-wallet/src/wallet/offer/unlock_assets.rs @@ -24,7 +24,11 @@ pub fn unlock_assets( for coin in locked.xch { let notarized_payment = NotarizedPayment { nonce, - payments: vec![Payment::new(p2_puzzle_hash, coin.amount)], + payments: vec![Payment::with_memos( + p2_puzzle_hash, + coin.amount, + vec![p2_puzzle_hash.into()], + )], }; assertions.push(payment_assertion(coin.puzzle_hash, ¬arized_payment));