Skip to content

Commit b53ed74

Browse files
authored
Added a comment for importing ReentrancyGuard contract from the correct directory in latest versions of OpenZeppelin (#100)
1 parent a48b602 commit b53ed74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DSCEngine.sol

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
pragma solidity 0.8.19;
2626

2727
import { OracleLib, AggregatorV3Interface } from "./libraries/OracleLib.sol";
28+
// The correct path for ReentrancyGuard in latest Openzeppelin contracts is
29+
//"import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
2830
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
2931
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
3032
import { DecentralizedStableCoin } from "./DecentralizedStableCoin.sol";

0 commit comments

Comments
 (0)