aavegotchi / aavegotchi-contracts

Aavegotchi diamond and its facets, deployment and upgrades. See the docs: https://docs.aavegotchi.com/
MIT License
316 stars 133 forks source link

interact should require that the aavegotchi has been claimed already. #89

Closed CryptoGotchi closed 3 years ago

CryptoGotchi commented 3 years ago

In aavegotchi-contracts/contracts/Aavegotchi/facets/AavegotchiGameFacet.sol (or ibraries/LibAavegotchi.sol ?)

I think interact() should require that the aavegotchi has been claimed already. Something like this maybe: require(s.aavegotchis[_tokenId].status == STATUS_AAVEGOTCHI, "Must be claimed");

cinnabarhorse commented 3 years ago

This is fixed in a recent upgrade! https://github.com/aavegotchi/aavegotchi-contracts/commit/321d5b163d4b4caca598607068a60208ebcbfc64