diff --git a/sales.py b/sales.py index 3c0ecf5..3b877c9 100644 --- a/sales.py +++ b/sales.py @@ -49,7 +49,7 @@ class Listing:

{self.domain}/

-
{self.price} HNS
+
{self.price:,} HNS

{self.description}

Contact: {self.contact}

Delete Listing @@ -72,7 +72,7 @@ class Listing: def txValid(self): # TODO Validate tx is valid - return True + return False # endregion @@ -113,8 +113,11 @@ def saveListings(listings:list[Listing]): f.write(json.dumps(listings,default=Listing.toJSON,indent=4)) def add_listing(listing:Listing): - if not listing.txValid(): - return "Invalid tx" + # if not listing.txValid(): + # return "Invalid tx" + + if not listing.signed(): + return "Not signed" # Remove any listings with the same domain remove_listing(listing.domain)