[TomoChain] Week 3 Development Update

Deploy and interact with solidity smart contract on TOMOChain

A
portalnetworkofficial

--

For week 2 TNS update, we discuss the necessity of TNS (TomoChain Name Service) and some of the key features of TomoChain that led to the decision of our collaboration. This week, we would like to present our development update on the TNS. Thanks to Johnny Hsieh, TomoChain developer at Portal Network, we were able to successfully deploy a smart contract on TomoChain testnet.

Deploying smart contract on TomoChain

Set up MetaMask

TomoChain is a public EVM (Ethereum Virtual Machine)-compatible blockchain. In this tutorial, we will be using Remix and MetaMask to deploy a contract on it.

To do so, we also need to set up MetaMask and request some testnet token. Thanks to the Tomochain http provider, we can have a seamless procedure.

STEP 1. Open up you MetaMask and select custom RPC.

STEP 2. Paste New RPC URL field with TomoChain http provider.

Here is the TomoChain testnet faucet:

With a sufficient amount of testnet token, we can now begin with the deployment of the contract on TomoChain testnet!

Work with Remix

As we are setting up MetaMask, we need choose injected Web3 to connect to the TomoChain testnet.

We are using a standard ERC20 token template, and has modified the name to JHDT (Johnny Digital Token).

Tap Deploy button, and a pop up should show up asking your to confirm this transaction. Remember to adjust the gas fee, as the default value is 0 which will occur an error. Here, we chose 5 as our gas fee.

Wait a few seconds…

And now we have successfully deployed an ERC20 contract on Tomochain.

In order to start an ICO on TomoChain testnet we have also deployed an crowd sale contract.

Let’s take a look of Tomoscan.

Johnny Digital Token now on TomoChain testnet!

Alternatively, you can also use MetaMask with Remix to explore the possibilities of TomoChain.

Thank you for reading.

Stay tuned for future update…

Social Media: Telegram | Reddit | Twitter | Facebook | Github |Websites & Products: Official Website | FORUM | MUMEI | KAIZEN |

--

--