Cyfrin / foundry-defi-stablecoin-cu

249 stars 117 forks source link

ReentrancyGuard change location #87

Closed BLTC-520 closed 4 months ago

BLTC-520 commented 4 months ago

OpenZeppelin's (openzeppelin-contracts) change the security files into the "utils" folder, so for the Lesson12's contracts

import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";

should change to 

import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

then you can successfully import the ReentrancyGuard.

BLTC-520 commented 4 months ago

I saw ppl have pointed out this issue before. Case closed.

EngrPips commented 4 months ago

I saw ppl have pointed out this issue before. Case closed.

Thanks for the heads-up anyways.