Closed pradyumna14 closed 1 week ago
Refactored the adoptPet function to reduce storage reads, added the PetAdopted event, optimized ++petIndex, and improved variable naming for better clarity. Maintains compatibility with existing logic and DApp functionality.
adoptPet
PetAdopted
++petIndex
Solves Issue: #20
Refactored the
adoptPet
function to reduce storage reads, added thePetAdopted
event, optimized++petIndex
, and improved variable naming for better clarity. Maintains compatibility with existing logic and DApp functionality.Solves Issue: #20