Deploy a Smart Contract
Deploy a contract using Remix
Open Remix IDE. ( Remix IDE )
Create a new
.sol
file

Give it any name, for example
Counter.sol
.Fill with this example code:
// SPDX-License-Identifier: MITpragma solidity ^0.7.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0-solc-0.7/contracts/token/ERC20/ERC20.sol";
contract Token is ERC20 {
constructor () ERC20("Example Token Hekla", "ETH") { _mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); }}
Compile
Change the Compiler version to
0.7.0+commit.9e61f92b

Then compile it.
Deploy
Change the Environment to
Injected Provider


Then click
transact
Finally, verify the smart contract using AarmaScan.
Last updated