-
Notifications
You must be signed in to change notification settings - Fork 350
Description
1) ETH Gas up
For the first step, you need ETH then to bridge over to Scroll network.
- Visit BRIDGE + Switch network to Ethereum mainnet & set amount that you want to bridge.
- Click "Deposit Funds"
2) Add Scroll network to MetaMask
Add Scroll Mainnet MetaMask or other EVM wallet by visiting ChainList.
• Go to ADD CHAIN
• Connect your MetaMask or other EVM Wallet
• Add the network
3) Deploying 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
4) Create a file
- At the top left of the screen > Click "Create New File", Then Set
- Name of file: scroll.sol
- Click Okay
- Now, proceed to copy the code below:
"pragma solidity 0.8.17;
// SPDX-License-Identifier: MIT
contract JEZFinance {
string public name = "Kajko";
string public symbol = "KJK";
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;
}
}"
... and then paste it into the file that you just created
- Click "Okay"
5) Compile
- Go To Solidity Compiler
- Click "Compile Scroll.sol"
6) Deploy & Run Transactions
- Go to "Deploy & Run Transactions"
- Select InJected Provider — MetaMask > Connect Your Wallet
- Confirm that you are on Scroll Mainnet & Click "Deploy"
- Confirm the transaction MetaMask
You have successfully deployed a smart contact on the Scroll network!
You can check eligibility to mint the Scroll Origins NFT EXPLORER
That's all for today. Cheers :D