Tried to run:
1.) Dappuniversity project (dappuniversity/dbank) 2.) pet-shop-tutorial
Truffle v5.3.3 (core: 5.3.3) Node v14.15.5
How can ser compile code @ the 0.8.4 to import OpenZeppelin’s ERC20.sol template, when Truffle requires it’s compiler/solc to match 5.3.3?
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Token is ERC20 {
  //add minter variable
  //add minter changed event
  constructor() public payable ERC20("Name", "Symbol") {
    //assign initial minter
  }
  //Add pass minter role function
  function mint(address account, uint256 amount) public {
    //check if msg.sender has a minter role
    _mint(account, amount);
  }
}
Source “@openzeppelin/contracts/token/ERC20/ERC20.sol” not found: File import callback not supported
 
     
    



 
     
     
     
    
 
     
     
     
    

 
    
 
    
 
     
     
     
     
     
     
     
     
    
