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 (#100)
  • Loading branch information
M-Faran authored Nov 22, 2024
1 parent a48b602 commit b53ed74
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 b53ed74

Please sign in to comment.