Advertisement
Hannaichi

Scroll Testnet Remix Code

Apr 13th, 2023
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | Source Code | 0 0
  1. pragma solidity 0.8.17;
  2.  
  3. // SPDX-License-Identifier: MIT
  4.  
  5. contract HappyCuan {
  6. string public name = "HappyCuan Token";
  7. string public symbol = "HCA";
  8. uint8 public decimals = 18;
  9. uint256 public totalSupply = 100000000;
  10.  
  11. mapping (address => uint256) public balances; address public owner;
  12.  
  13. constructor() { owner = msg.sender; balances[owner] = totalSupply; }
  14.  
  15. 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