Compile, Deploy, Run Smart Contract
Last modified: 2023-03-26
When we created smart contract, we need to compile it and deploy to Ethereum. There are various way to do that.
Ethereum Remix extension is the VS Code plugin that can perform a variety of tasks such as verifying contracts.
In the left pane, click Explorer tab and open the "REMIX" field at the bottom. Then choose "Run & Deploy" and select "Activate". The "Run & Deploy" window opens.
In Connection field, enter the address and click Connect.
Next, select the file you want to compile, and click Compile.
After compiling, select the contract you want to deploy, then click Deploy.
If deploying the contract successfully, we can see functions of the contract.
Click TRANSACT or CALL at the function you want to.
After that, we can see the output at the bottom.