From 4f06bee5c6bf7f7a496323fdb1d3385b50d0bdb8 Mon Sep 17 00:00:00 2001 From: Matt Hauff Date: Tue, 14 Jan 2025 09:49:32 -0700 Subject: [PATCH] [CHIA-2198] Don't create zero amount royalty payments (#19120) Dont create zero amount royalty payments --- chia/wallet/nft_wallet/nft_wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chia/wallet/nft_wallet/nft_wallet.py b/chia/wallet/nft_wallet/nft_wallet.py index 71f109afec6c..1235cc3327fe 100644 --- a/chia/wallet/nft_wallet/nft_wallet.py +++ b/chia/wallet/nft_wallet/nft_wallet.py @@ -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],