Skip to content

Instantly share code, notes, and snippets.

@DFMlab
Created June 22, 2023 13:10
Show Gist options
  • Save DFMlab/39fe2d5ced50a4d924e73e21199fce09 to your computer and use it in GitHub Desktop.
Save DFMlab/39fe2d5ced50a4d924e73e21199fce09 to your computer and use it in GitHub Desktop.
Sample ERC20 Token
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract Token is ERC20 {
constructor () ERC20("Token", "TKN") {
_mint(msg.sender, 1*10^30);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment