From d22410e7c0b4592ae0fe30351dd88fd64760f7a6 Mon Sep 17 00:00:00 2001 From: Muhammad Faran Date: Sun, 17 Nov 2024 18:18:50 +0500 Subject: [PATCH] Added a comment for importing ReentrancyGuard contract from the correct directory in latest versions of OpenZeppelin --- src/DSCEngine.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DSCEngine.sol b/src/DSCEngine.sol index 478d262..2a7fff2 100644 --- a/src/DSCEngine.sol +++ b/src/DSCEngine.sol @@ -25,6 +25,8 @@ pragma solidity 0.8.19; import { OracleLib, AggregatorV3Interface } from "./libraries/OracleLib.sol"; +// 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"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { DecentralizedStableCoin } from "./DecentralizedStableCoin.sol";