Cyfrin / foundry-defi-stablecoin-cu

249 stars 117 forks source link

MockFailedTransferFrom::mint not returning bool #52

Closed aciDrums7 closed 11 months ago

aciDrums7 commented 11 months ago

Issue related to: https://github.com/Cyfrin/foundry-full-course-f23/discussions/1165

MockFailedTransferFrom::mint() method is not returning a boolean, so if someone calls DSCEngine::mintDsc() from a test, the EVM reverts without a specific error.

I've already fixed on my repo and going to open a PR after submitting this issue.