Created
November 27, 2021 01:29
-
-
Save coindegen/a8f6e76cdcd4b9a7c3998ce25542bc22 to your computer and use it in GitHub Desktop.
Boilerplate code for FLURKS token
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/FLURKS.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; | |
contract FLURKSToken is ERC20PresetMinterPauser { | |
constructor() ERC20PresetMinterPauser("Flurks", "FLURKS") { | |
_mint(msg.sender, 22000000); | |
} | |
function decimals() public view virtual override returns (uint8) { | |
return 8; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment