Hi @S-kh,
Welcome to the community
Thanks @skyge for being awesome.
We can use @
(npm style) imports on Remix now.
If you use GitHub imports, you need to specify the release tag so that you use an official release of OpenZeppelin Contracts… Importing from the master branch means that the code can change.
Simple example token:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyToken is ERC20 {
constructor() ERC20("MyToken", "MTK") {
_mint(msg.sender, 1000000 * 10 ** decimals());
}
}