MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

Use `@openzeppelin/contracts-upgradeable` instead of `@openzeppelin/contracts`.

Summary

Openzeppelin warns about mixing of contracts with contracts-upgradeable.

Consider for example ERC20 from OpenZeppelin Contracts: the contract initializes the tokens name and symbol in its constructor.This means you should not be using these contracts in your OpenZeppelin Upgrades project. Instead, make sure to use @openzeppelin/contracts-upgradeable, which is an official fork of OpenZeppelin Contracts that has been modified to use initializers instead of constructors.

Tools Used

Manual Review

Recommendations

Shift from contracts to contracts-upgradable when using upgradable contracts.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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