Skip to content

Instantly share code, notes, and snippets.

@Hazelwu2
Created August 17, 2022 14:35
Show Gist options
  • Select an option

  • Save Hazelwu2/aa3c4534c1cd84675c7ff0a7f558c893 to your computer and use it in GitHub Desktop.

Select an option

Save Hazelwu2/aa3c4534c1cd84675c7ff0a7f558c893 to your computer and use it in GitHub Desktop.
RugPullToken 騙 ERC20 合約
// 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