Skip to content

Instantly share code, notes, and snippets.

@dhananjayhegde
Created January 11, 2022 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhananjayhegde/96c20be2919c98f41c512e94c7a76c01 to your computer and use it in GitHub Desktop.
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=
// 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