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 Ownable version 5 #238

Closed gin closed 1 week ago

gin commented 2 weeks ago

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

This is because lesson uses a previous version of OpenZeppelin's Ownable library. However, for version 5, for our stablecoin project to build without errors, we have to pass in an address in the constructor: Screenshot 2024-10-15 at 8 50 04 PM

More info at: https://docs.openzeppelin.com/contracts/5.x/access-control#ownership-and-ownable

EngrPips commented 2 weeks ago

Hello @gin, Thanks for this contribution, and this will be attended to appropriately as soon as possible.