Created
January 11, 2022 14:16
-
-
Save dhananjayhegde/96c20be2919c98f41c512e94c7a76c01 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
// This line imports the ERC-20 token standard from OpenZeppelin (OZ). OZ is an Ethereum security company. | |
// Among other things, OZ develops reference contracts for popular smart contract standards which are thoroughly | |
// tested and secure. Whenever implementing a smart contract which needs to comply with a standard, try to | |
// find an OZ reference implementation rather than rewriting the entire standard from scratch. | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
contract DNote is ERC20 { | |
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) { | |
_mint(msg.sender, 10 * 10 ** 18); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment