Deploy Your Contract
Last updated
Last updated
Now that you've written your first contract, you can deploy it to Initverse Testnet. Deploying contracts with Remix is pretty straightforward.
Open the Deploy tab
Click on the "Deploy & run transactions" icon in the left sidebar to open the Deploy tab (it looks like an Ethereum logo with an arrow pointing to the right). You'll see some deployment options and a list of contracts that are currently compiled. Since you only have one contract, you should see a single contract called "MyFirstContract" in the list.
Change your environment
By default, Remix will try to deploy your contract to a local, in-memory blockchain. This is useful for testing, but you'll need to change your environment to deploy to Initverse Testnet for this tutorial. Click on the dropdown underneath the "Environment" heading and select "Injected Provider - MetaMask".
Accept the connection request
Once you've selected the "Injected Provider - MetaMask" option, MetaMask will show you a popup asking if you'd like to connect to Remix. Accept this request by clicking the "Connect" button.
Deploy your contract
You're now ready to deploy your contract! Click the orange "Deploy" button to deploy your contract to Initverse Testnet. You'll be presented with another MetaMask popup asking you to confirm the transaction. Click the "Confirm" button to continue.
Wait for your transaction to confirm
Initverse Testnet is relatively fast, so transactions should confirm within just a few seconds. Remix will automatically detect when your transaction has confirmed and will show you your newly deployed contract under the "Deployed Contracts" heading within the Deploy tab.