You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If birth happens while the kitty is in the ownership of SaleClockAuction contract, the offspring stays in the ownership of the auction contract indefinitely.
As a solution, I propose adding require to giveBirth function that checks if the current owner isn't SaleClockAuction contract, second option is preventing pregnant kitties from being put up for sale.
The text was updated successfully, but these errors were encountered:
Excellent catch, @adamkolar! Our intention was to prevent pregnant Kitties from being put up for auction, but we aren't actually checking for it. Very nice find, thank you!
If birth happens while the kitty is in the ownership of SaleClockAuction contract, the offspring stays in the ownership of the auction contract indefinitely.
As a solution, I propose adding require to giveBirth function that checks if the current owner isn't SaleClockAuction contract, second option is preventing pregnant kitties from being put up for sale.
The text was updated successfully, but these errors were encountered: