# DEPLOYING REDDIO TESTNET CONTRACT

By [Living_Phantom](https://paragraph.com/@living-phantom) · 2025-01-29

---

LINK TO TWEET:

[https://x.com/0x\_\_\_ygen/status/1884674143917834280](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!!

---

*Originally published on [Living_Phantom](https://paragraph.com/@living-phantom/deploying-reddio-testnet-contract)*
