I am trying to use the ERC20PresentMinterPauser contract from openzeppelin in remix but Remix is not importing all the files that are necessay!

The code I pasted in a .sol file is given below

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";

What can be done to get all the files from github to remix for this to compile?

  • The contract your are trying to import is in Solidity v0.8, what version are you using in your remix contract (pragma solidity)?
    – alberto
    Commented Mar 5, 2021 at 10:52
  • not a solution, but it is not a good idea to import from master.. probably better to use a specific tag version, cause they update and restructure their contract a lot.
    – Majd TL
    Commented Mar 5, 2021 at 12:13
  • I didn't speacify any pragma solidity but after you mentioned I gave ``` pragma solidity ^0.8.0; ``` @alberto Commented Mar 5, 2021 at 12:43
  • @MajdTL Yea this is the master branch when I search this in my browser url the repo has all the necessary files Commented Mar 5, 2021 at 12:45

1 Answer 1


Try changing the remix solidity compiler version to one equal or higher than all contracts you want to include, possibly the latest version

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.