Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity 0.8.17;
- // SPDX-License-Identifier: MIT
- contract HappyCuan {
- string public name = "HappyCuan Token";
- string public symbol = "HCA";
- uint8 public decimals = 18;
- uint256 public totalSupply = 100000000;
- mapping (address => uint256) public balances; address public owner;
- constructor() { owner = msg.sender; balances[owner] = totalSupply; }
- function transfer(address recipient, uint256 amount) public { require(balances[msg.sender] >= amount, "Insufficient balance."); balances[msg.sender] -= amount; balances[recipient] += amount; } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement