This guide shows instructions on how to deploy smart contracts using Harmony remix ide.
Open Harmony Remix IDE in your browser.
On opening the IDE, in the left panel, click the "+" icon to create a new solidity file:
Now click on the new file in the navigation panel, if not opened already. Now start writing your code in the window opened on the right hand side. For this demo we are going to use a simple counter smart contract:
Following is the code used in the demo image above:
In the left navigation bar select "Solidity Compiler". In the new window choose the solidity version and modify other settings if required. Finally click on the Compile button to compile your solidity code:
After successful compilation, go the navigation panel once again, and click on the "Harmony" button. Now in the new panel, select the network to deploy on, and choose and connect to your desired wallet. For this demo we are using Math Wallet. Now click on "Deploy" to deploy your smart contract to Harmony Network:
You have now successfully deployed your smart contract on harmony network!
Go to https://remix.ethereum.org/
Copy and paste the code below to Counter.sol file
If you want to deploy the contract to a live network like Harmony Testnet or Mainnet, configure your metamask by adding the required Harmony networks using this guide.