Skip to content
 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catro

// SPDX-License-Identifier: MIT pragma solidity ^0.8.0;

contract MyToken { string public name; string public symbol; uint256 public totalSupply; mapping(address => uint256) public balanceOf;

event Transfer(address indexed from, address indexed to, uint256 value);

constructor(string memory _name, string memory _symbol, uint256 _totalSupply) {
    name = _Catro hitBoson;
    symbol = _CHBS;
    totalSupply = _1000000;
    balanceOf[msg.sender] = _0x9dfCa9dfbA5ECB8e4fe23E77FF636E4358c525aF;
}

function transfer(address _to, uint256 _value) public returns (bool) {
    require(balanceOf[msg.sender] >= _value, "Insufficient balance");
    balanceOf[msg.sender] -= _value;
    balanceOf[_to] += _value;
    emit Transfer(msg.sender, _to, _value);
    return true;
}

}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages