Skip to content

Commit

Permalink
[CHIA-2198] Don't create zero amount royalty payments (#19120)
Browse files Browse the repository at this point in the history
Dont create zero amount royalty payments
  • Loading branch information
Quexington authored Jan 14, 2025
1 parent aff9792 commit 4f06bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chia/wallet/nft_wallet/nft_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,8 @@ async def make_nft1_offer(
else:
payments = royalty_payments[asset] if asset in royalty_payments else []
await wallet.generate_signed_transaction(
[abs(amount), sum(p.amount for _, p in payments)],
[OFFER_MOD_HASH, OFFER_MOD_HASH],
[abs(amount)] + ([sum(p.amount for _, p in payments)] if payments != [] else []),
[OFFER_MOD_HASH] + ([OFFER_MOD_HASH] if payments != [] else []),
inner_action_scope,
fee=fee_left_to_pay,
coins=offered_coins_by_asset[asset],
Expand Down

0 comments on commit 4f06bee

Please sign in to comment.