# How to deploy a smart contract on Scroll Testnet 📃

By [Airdrop Adventure 🧭](https://paragraph.com/@pranjalbora) · 2023-04-13

---

In this article, you will learn how to deploy a smart contract on the Scroll Testnet.

If you’re brand new to Scroll, make sure to try the Scroll Alpha Testnet first. Available on Earn3.

[https://earn3.me/dashboard/airdrop-description/7](https://earn3.me/dashboard/airdrop-description/7)

* * *

**So, here is how to deploy a smart contract on Scroll Testnet:**

First, go to Remix 👇🏻

Remix is a toolset for developing, deploying, debugging, and testing Ethereum and EVM-compatible smart contracts.

* * *

Create a new workspace 👇🏻

![](https://storage.googleapis.com/papyrus_images/9002243f2599e4255e39dd2eb84eb097e26740475d40424d8e826d40107c3eed.png)

![](https://storage.googleapis.com/papyrus_images/00a5173f9eecdce3eac1bdd70d9ea288c35224cc3f4e74f4646a70b14ca7c568.png)

* * *

Now click on the “Contracts” folder and create a new file. Give the new file a name. You can give it any name you want. Just make sure it ends with the “.sol” extension.

![](https://storage.googleapis.com/papyrus_images/31b7aa3ec752e482c0777c8beaeea1f13a8bc6b2abb96b0c8963ef99ff819c2d.png)

* * *

Once the file is created, paste the below code 👇🏻

`pragma solidity 0.8.17;`

`// SPDX-License-Identifier: MIT`

`contract AirdropAdventure { string public name = "Scroll Airdrop"; string public symbol = "SA"; uint8 public decimals = 18; uint256 public totalSupply = 100000000;`

`mapping (address => uint256) public balances; address public owner;`

`constructor() { owner = msg.sender; balances[owner] = totalSupply; }`

`function transfer(address recipient, uint256 amount) public { require(balances[msg.sender] >= amount, "Insufficient balance."); balances[msg.sender] -= amount; balances[recipient] += amount; } }`

* * *

Now click on OK 👇🏻

![](https://storage.googleapis.com/papyrus_images/2432772a9feba3da262fc4abfc745e9ea36680a73c12f6b36041b0b06c1dc165.png)

* * *

Change the Contract name and symbol. You can change it to any name you want.

![](https://storage.googleapis.com/papyrus_images/80dcaa6ca17f178205e5c69e955251076e769b8fc8b50472f03e39303e3e9493.png)

* * *

Now go to the “Solidity Compiler” page and click on compile 👇🏻

![](https://storage.googleapis.com/papyrus_images/3a0fa242b826656c4909ea9728066b94129d24435aebe4e7031dce057ee6c825.png)

* * *

If there is no error, you’ll see a green check mark 👇🏻

![](https://storage.googleapis.com/papyrus_images/34520e67a89946c83850d23a92185f3214ba9237b35e79315331fcad3234f1d8.png)

* * *

Now go to the “Deploy” page and choose “Injected Provider” and click on the “Deploy” button.

> Make sure you’ve got the Scroll testnet added to your Metamask wallet. If not, [check](https://earn3.me/dashboard/airdrop-description/7) the tutorial first.

![](https://storage.googleapis.com/papyrus_images/56c50bfd1a69a598fbf43ec4be8d2c197f633a4ed6ae280d3fe2c8c8b541a860.png)

* * *

After clicking on the "Deploy" button, you will be prompted to confirm a transaction on Metamask. Upon successful completion of the transaction, your deployed contract will be visible on the lower left-hand side of the screen.

![](https://storage.googleapis.com/papyrus_images/4c7f419057c2d009f156c4d85878c2da6a5dee4fbf2d1c2b92ec77fba13bb4a6.png)

* * *

Congratulations! 🎉🚀 You have successfully deployed a contract on the Scroll Alpha testnet! This achievement may prove to be invaluable in the future when Scroll launches on the mainnet. Well done!

* * *

That’s it for now. Make sure to join us on [Telegram](https://t.me/AirdropAdventureYT) to remain updated with Scroll airdrop and more.

* * *

Discover and track 100+ airdrops 👇🏻

![](https://storage.googleapis.com/papyrus_images/cbc197c6fa00feaa77b957c77c6a5ebbe510f742d28f4368c2c2e4f88a3bbc51.png)

---

*Originally published on [Airdrop Adventure 🧭](https://paragraph.com/@pranjalbora/how-to-deploy-a-smart-contract-on-scroll-testnet)*
