Created
August 17, 2022 14:35
-
-
Save Hazelwu2/aa3c4534c1cd84675c7ff0a7f558c893 to your computer and use it in GitHub Desktop.
RugPullToken 騙 ERC20 合約
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.4; | |
| import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
| contract RugPullToken is ERC20 { | |
| constructor(uint256 initialSupply) ERC20("Rug Pull", "RP") { | |
| } | |
| function mint(uint256 _amount) public { | |
| _mint(msg.sender, _amount); | |
| } | |
| function transfer(address to, uint256 amount) public override returns (bool) { | |
| revert(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment