Created
January 16, 2022 17:23
-
-
Save lex-world/499053511a13033082322963c67ff48a to your computer and use it in GitHub Desktop.
BEP20 Token format for Binance Chain from ERC20 Standard.
This file contains 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
// contracts/BEP20.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract BEP20 is ERC20 { | |
constructor(uint256 initialSupply, string memory _name, string memory _symbol) ERC20(_name, _symbol) { | |
_mint(msg.sender, initialSupply); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment