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:
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:
More info at: https://docs.openzeppelin.com/contracts/5.x/access-control#ownership-and-ownable