-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTokenB.sol
More file actions
26 lines (22 loc) · 757 Bytes
/
Copy pathTokenB.sol
File metadata and controls
26 lines (22 loc) · 757 Bytes
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
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.22;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/* @title TokenB
* @author Bugallo Sergio
* @dev Only for educational purposes, implements a TokenB using Openzeppelin's contracts.
* @notice Trabajo Final Buenos Aires EDP Modulo3 (ETHKIPU)
* @custom:security-contact mysecurityagent@TP3-ETHKIPU.xxx
*/
contract TokenB is ERC20, Ownable {
constructor()
ERC20("TokenB", "TKB")
Ownable(msg.sender)
{
_mint(msg.sender, 1000000 * 10 ** decimals());
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}