Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

EggstravaganzaNFT contract address is not initialized in the EggVault constructor

[M-1] EggstravaganzaNFT contract address is not initialized in the EggVault constructor

Description: If EggVault:setEggNFT is not called the eggNFT remains unintialized which causes all calls to EggVault:depositEgg to revert.

Impact: Any call trying to deposit eggs to the vault will revert.

Recommended Mitigation: Pass in the EggstravaganzaNFT contract address to the contructor to EggVault to ensure it is initialized.

+ constructor(address _eggNFT)Ownable(msg.sender){
+ setEggNFT(_eggNFT);
+ }
- constructor()Ownable(msg.sender){}
Updates

Lead Judging Commences

m3dython Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!