scroll-tech / scroll-guides

MIT License
43 stars 180 forks source link

How to Deploy a Smart Contract on SCROLL Mainnet #11

Open Kajko25 opened 6 months ago

Kajko25 commented 6 months ago

1) ETH Gas up For the first step, you need ETH then to bridge over to Scroll network.

• Go to ADD CHAIN • Connect your MetaMask or other EVM Wallet • Add the network

3) Deploying Smart Contract Visit REMIX

)

4) Create a file

"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

5) Compile

6) Deploy & Run Transactions

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

crismeireles commented 6 months ago

Excellent! Well done. Congratulations

Kajko25 commented 6 months ago

Excellent! Well done. Congratulations

Thx :D its rly ez ;p did you try?

Kajko25 commented 3 months ago

If someone would like to deploy my contract here is my .sol :D

GitHub

Regards Guys! :D