-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHACK.sol
38 lines (33 loc) · 1.21 KB
/
HACK.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.22;
import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol";
import "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Votes.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";
/// @custom:security-contact [email protected]
contract ETHack is ERC20, ERC20Burnable, ERC20Permit, ERC20Votes, Ownable {
constructor(address initialOwner)
ERC20("ETHack", "HACK")
ERC20Permit("ETHack")
Ownable(initialOwner)
{
_mint(msg.sender, 100000000 * 10 ** decimals());
}
// The following functions are overrides required by Solidity.
function _update(address from, address to, uint256 value)
internal
override(ERC20, ERC20Votes)
{
super._update(from, to, value);
}
function nonces(address owner)
public
view
override(ERC20Permit, Nonces)
returns (uint256)
{
return super.nonces(owner);
}
}