EVM Contract Deployment
Deploying a Standard ERC20 Contract
This document outlines the steps to deploy a standard ERC20 contract using your preferred tooling.
Step 1: Choose a Standard ERC20 Contract
Several readily available standard ERC20 contracts exist online. Choose one based on your specific needs and security considerations.
Step 2: Compile the Contract
Once you have chosen a contract, compile it using the relevant compiler and settings. This may involve using tools like Solidity compiler or Remix.
Step 3: Deploy the Contract
Select the "Deploy & Run Transaction" button. This button is typically located at the bottom of the left toolbar in your development environment.
Choose "WalletConnect" as the connection method.
Connect your Metamask wallet to WalletConnect or Injected Provider .
Metamask is connected to the magnet network. If you need to deploy a contract on the tanssi network, you only need to change the URL to the corresponding port in metamask or other wallets.
This will allow you to sign the transaction and pay the gas fees.
Review the transaction details and confirm the deployment.
Step 4: Add Contract Address to Metamask
Copy the deployed contract address.
Open Metamask and click the "Add Token" button.
Select "Custom Token" and paste the contract address.
Metamask will automatically fetch the token details and display them.
Click "Next" and then "Add Tokens" to confirm.
Step 5: Verify Token Existence
Once you have added the contract address to Metamask, your ERC20 tokens will be visible in your wallet. You can verify their existence by exploring your token balance and interacting with the contract through its functions.
Additional Notes:
This is a general guide, and the specific steps may vary depending on your chosen tools and contract implementation.
Before deploying the contract, ensure you have sufficient DOT in your Metamask wallet to cover the gas fees.
Remember to securely store your private key and handle your tokens responsibly.
Last updated