DeFiHardhatFoundry
250,000 USDC
View results
Submission Details
Severity: low
Invalid

fertilizer erc1155 contract URI is always empty when unitialized

Line of code

https://github.com/Cyfrin/2024-05-beanstalk-the-finale/blob/df2dd129a878d16d4adc75049179ac0029d9a96b/protocol/contracts/tokens/Fertilizer/Fertilizer.sol#L36

Summary

fertilizer erc1155 contract URI is always empty when unitialized

Vulnerability Details

function init() external initializer {
__Internallize_init("");
}

the uri of fertilizer will be empty when it is unintialized. It is important for erc 1155 to have a proper uri.

Impact

fertilizer erc1155 contract URI is always empty when unitialized

Tools Used

manual review

Recommendations

ensure the uri is set correctly for the fertilizer erc 1155 contract

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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