# DEPLOYING REDDIO TESTNET CONTRACT **Published by:** [Living_Phantom](https://paragraph.com/@living-phantom/) **Published on:** 2025-01-29 **URL:** https://paragraph.com/@living-phantom/deploying-reddio-testnet-contract ## Content LINK TO TWEET: https://x.com/0x___ygen/status/1884674143917834280 COPY: // SPDX-License-Identifier: MIT pragma solidity ^0.8.16; contract MyToken { string public name; string public symbol; uint8 public decimals = 18; address private owner; // the creator of this contract mapping (address => uint256) balances; constructor() { owner = msg.sender; name = 'My Token'; symbol = 'MTK'; balances[owner] = 1000000 * 10 ** decimals; } function balanceOf(address _user) public view returns(uint256){ return balances[_user]; } function transferToken(address to, uint256 amount )public { require(to != address(0)); if (balances[msg.sender] >=amount) { balances[to]=balanceOf(to)+amount; balances[msg.sender]= balanceOf(msg.sender)-amount; revert(); // Revert instead of returning true }else{ revert(); } } } LIKE, FOLLOW, SHARE!! ## Publication Information - [Living_Phantom](https://paragraph.com/@living-phantom/): Publication homepage - [All Posts](https://paragraph.com/@living-phantom/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@living-phantom): Subscribe to updates