Cyfrin / Updraft

https://updraft.cyfrin.io
GNU Affero General Public License v3.0
55 stars 39 forks source link

Advanced Foundry - DeFi Stablecoin: Add note on OpenZeppelin's ReentrancyGuard version 5 #239

Closed gin closed 1 week ago

gin commented 1 week ago

Added a note in the written lesson about ReentrancyGuard version 5, because when I followed the lesson's demo code, running forge build fails.

The reason is because the location for ReentrancyGuard.sol has changed to
@openzeppelin/contracts/utils/ReentrancyGuard.sol from @openzeppelin/contracts/security/ReentrancyGuard.sol

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.1.0/contracts/utils/ReentrancyGuard.sol