Quick start
Last updated
Was this helpful?
Last updated
Was this helpful?
In this section we'll get you deploying a sample contract on Mode in less than 10 minutes. Letâs see how to deploy a smart contract on Mode using the for simplicity.
Before getting started:
Follow for the step-by-step on how to add Mode testnet to .
This guide assumes you have got Sepolia ETH and bridged to the Mode Testnet Network. Learn how to do that in Testnet Faucets
We are ready to get started!
is a no-setup tool for developing smart contracts. Itâs easy to get started allowing a simple deployment process, debugging, interacting with smart contracts, and more. Itâs a great tool to test quick changes and interact with deployed smart contracts.
For the sake of this tutorial, we will be deploying the â1_Storage.solâ smart contract that comes as an example in Remix, but you can use any of your code.
We added a few lines of code to register this contract on the SFS. You can copy and then paste this in Remix or use your own contract code. Here's the sample code:
Copy the sample code and paste it in one of the .sol files in Remix
To compile your smart contract, go to the Solidity Compiler tab
and select the contract you want to compile
Click on "Compile", you can also enable "Auto Compile" for automatic compilation whenever you change the contract code.
Once the smart contract is compiled successfully, switch to the "Deploy & Run Transactions
" tab.
In the "Environment
" dropdown menu, select "Injected Provider - MetaMask
"; this will connect your MetaMask to Remix and will allow you to make transactions from that connected wallet.
Select the compiled contract you want to deploy and click âDeploy.â
Now, MetaMask should pop up and ask you to confirm the transaction with super low fees.
CONGRATULATIONS! You just deployed your first smart contract to Mode.
Make sure to open the advanced configurations and setting the EVM version to London. This is to avoid an issue with the PUSH0
opcode. You can read more on this specification with all Optimism chains .
If you want to learn how to interact with your recently deployed contact, check .
To learn more about Mode and how to turn your code into a business, join our and say hello ð