Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ReentrancyGuard import error in latest versions of Openzeppelin #100

Conversation

M-Faran
Copy link
Contributor

@M-Faran M-Faran commented Nov 17, 2024

The import directory used in your version of code is no longer compatible with the latest version of Openzeppelin it is as follows which is incorrect
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";

In the latest version the correct directory for ReentrancyGuard is
"import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

All I did in my commit is add a comment above the original import which states the correct directory now which is as follows
// The correct path for ReentrancyGuard in latest Openzeppelin contracts is //"import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";

I know its not a bigger of a deal and can be maybe neglected but I still bothered to notify you guys. I dont know how professional this is as Iam a complete beginner but I still did it I never hesitate in life!

…ct directory in latest versions of OpenZeppelin
@EngrPips
Copy link

Thanks for the contribution @M-Faran, This will be attended to as soon as possible.

@PatrickAlphaC PatrickAlphaC merged commit b53ed74 into Cyfrin:main Nov 22, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants