HOW TO DEPLOY SMART CONTRACT ON SCROLL MAINNET

HEADBOY
3 min readOct 27, 2023

FIRST STEP

For The First Step, Youd Be Needing Some Gas Fee, On Scroll Network, So Let’s Bridge From Ethereum To Scroll

Visit SCROLL BRIDGE & Switch Network To Ethereum & Set Amount To Bridge Then Click Deposit Funds

STEP TWO

ADD Scroll Mainnet Network To Your Extension Browser. Visit SCROLL NETWORK & Proceed To Click Add To MetaMask

STEP THREE

Let’s Proceed To Deploy A Smart Contract, Visit REMIX , Next Click On Workspaces & Select Create, Then Set Template As Basic Or Defualt & New Workspace As Scroll Workspace Then Click OK

STEP FOUR

Now Let’s Create A File, At The Top Left Click Create New File, Then Set Name For File, scroll.sol & Click Okay

Now Proceed To Copy This Code Below & Paste In The File You Recently Created Then Click Okay

pragma solidity 0.8.17;

// SPDX-License-Identifier: MIT

contract JEZFinance {
string public name = "Jez Finance";
string public symbol = "JEZ";
uint8 public decimals = 18;
uint256 public totalSupply = 10000000000;

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;
}
}

STEP FIVE

Go To Solidity Compiler & Click Compile Scroll.sol

STEP SIX

Go To Deploy & Run Transactions, Then Select InJected Provider — MetaMask & Connect Your Wallet, Be Sure To Be On Scroll Mainnet, Next Click Deploy & Confirm Transaction In MetaMask

You’ve Successfully Deployed A Smart On Scroll Network

You Can Check Here If You’re Eligible For To Mint The NFT Here

I’m Eligible So You Should Be Too

--

--