As the name suggests this function allows the vault owner to change the address of the EggstravaganzaNFT'contracts:
The issue lies in the fact that the vault's global variables storedEggs
and eggDepositors
do not account for such change, they will be always relative to the NFT contract before the change.
searchForEgg()
and depositEggToVault()
becomes useless since they will always refer to the old NFT contract
EggVault:depositEgg()
will not work for tokenIds already deposited when the old NFT contract was active
To correctly support such functionality the EggVault's tracking variables should be updated per-NFT-contract:
Also, the EggHuntGame contract shoule be updated to fetch the currently active eggNFT from the EggVault to avoid discrepancies.
Changing the NFT contract address doesn't update the storedEggs and eggDepositors mappings
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.