Skip to content

Commit

Permalink
Added a comment for importing ReentrancyGuard contract from the corre…
Browse files Browse the repository at this point in the history
…ct directory in latest versions of OpenZeppelin
  • Loading branch information
M-Faran committed Nov 17, 2024
1 parent 8a3dbf6 commit d22410e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DSCEngine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d22410e

Please sign in to comment.