Cyfrin / foundry-defi-stablecoin-cu

241 stars 107 forks source link

Mock contracts pragma needs to be updated with the ^ SIGN #61

Closed S23Web3 closed 7 months ago

S23Web3 commented 7 months ago

Most of the mocks have pragma solidity 0.8.xx;

This will not work and give errors, it needs to be updated at least with the ^ sign pragma solidity ^0.8.xx;

` Error: Found incompatible Solidity versions:

test/mocks/MockFailedTransfer.sol (0.8.19) imports:

lib/openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Burnable.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/access/Ownable.sol (^0.8.18)
lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol (^0.8.18)
lib/openzeppelin-contracts/contracts/utils/Context.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/utils/Context.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/utils/Context.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol (^0.8.20)
lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol (^0.8.20)

`

PatrickAlphaC commented 7 months ago

You might be installing the wrong imports! Can you please follow the instructions in the README? There are specific dependencies you'll need to install.

S23Web3 commented 7 months ago

Thank you, indeed I was.

On Thu, Feb 15, 2024 at 5:07 AM Patrick Collins @.***> wrote:

You might be installing the wrong imports! Can you please follow the instructions in the README? There are specific dependencies you'll need to install.

— Reply to this email directly, view it on GitHub https://github.com/Cyfrin/foundry-defi-stablecoin-f23/issues/61#issuecomment-1945202565, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD3X46PDRYP3JIAVNCT2N6LYTVNVXAVCNFSM6AAAAABDDSU7KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVGIYDENJWGU . You are receiving this because you authored the thread.Message ID: @.***>