From b53ed7470fdde287d9a2ec12a4b33122164af643 Mon Sep 17 00:00:00 2001 From: Muhammad Faran <132539003+M-Faran@users.noreply.github.com> Date: Fri, 22 Nov 2024 19:09:13 +0500 Subject: [PATCH] Added a comment for importing ReentrancyGuard contract from the correct directory in latest versions of OpenZeppelin (#100) --- 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";