Skip to content

Commit

Permalink
Merge pull request #104 from xch-dev/offer-fix
Browse files Browse the repository at this point in the history
Fix offers
  • Loading branch information
Rigidity authored Nov 20, 2024
2 parents f43377e + 3ed9a85 commit 064556c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/sage-wallet/src/wallet/offer/make_offer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
)],
)?;
}

Expand Down
6 changes: 5 additions & 1 deletion crates/sage-wallet/src/wallet/offer/unlock_assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, &notarized_payment));
Expand Down

0 comments on commit 064556c

Please sign in to comment.