current position:Home>Remix imports ierc20 of openzeppelin Sol error, unable to import '@ openzeppelin / contracts / token / erc20 / safeerc20 sol': File not found

Remix imports ierc20 of openzeppelin Sol error, unable to import '@ openzeppelin / contracts / token / erc20 / safeerc20 sol': File not found

2022-02-03 23:31:07 Q & A of Denglian community

1. stay Remix Import IERC20.sol file pragma solidity 0.6.12;

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

2.Compiler The following error occurred Unable to import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol": File not found

How to solve it . thank you .




Take the answer 1:

Final solution : stay Remix Create folder , take github Import relevant files into this folder , Program reference Remix Relative file path of .






Other answers 1:


Other answers 2:


Other answers 3:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032331044441.html

Random recommended