mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-10 12:29:49 +03:00
Check for requesting items when creating an offer (#10864)
This commit is contained in:
parent
2eb4fdeaee
commit
06d160d0a4
@ -94,6 +94,8 @@ class Offer:
|
||||
offered_coins: Dict[bytes32, List[Coin]] = self.get_offered_coins()
|
||||
if offered_coins == {}:
|
||||
raise ValueError("Bundle is not offering anything")
|
||||
if self.get_requested_payments() == {}:
|
||||
raise ValueError("Bundle is not requesting anything")
|
||||
|
||||
# Verify that there are no duplicate payments
|
||||
for payments in self.requested_payments.values():
|
||||
|
Loading…
Reference in New Issue
Block a user