# Instructions for Deploy Contrac.

By [hatake](https://paragraph.com/@hatake) · 2023-10-27

---

1/ Go to Link: [remix.ethereum.org](http://remix.ethereum.org)

2/ Create a new folder on remix :

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

3/ Name this item and press Enter:

![](https://storage.googleapis.com/papyrus_images/85a2de650eb2a93a59600b6fee21d098c0394bb423e9428273a456612b7dd608.jpg)

4/ Copy the code below and paste it into the blank field.

    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.4;
    contract FunctionTypes{
        uint256 public number = 5;
        
        constructor() payable {}
    
        // 函数类型
        // function (<parameter types>) {internal|external} [pure|view|payable] [returns (<return types>)]
        // 默认function
        function add() external{
            number = number + 1;
        }
    
        // pure: 纯纯牛马
        function addPure(uint256 _number) external pure returns(uint256 new_number){
            new_number = _number+1;
        }
        
        // view: 看客
        function addView() external view returns(uint256 new_number) {
            new_number = number + 1;
        }
    
        // internal: 内部
        function minus() internal {
            number = number - 1;
        }
    
        // 合约内的函数可以调用内部函数
        function minusCall() external {
            minus();
        }
    
        // payable: 递钱，能给合约支付eth的函数
        function minusPayable() external payable returns(uint256 balance) {
            minus();    
            balance = address(this).balance;
        }
    }
    

5/ Click as shown in the picture.

![](https://storage.googleapis.com/papyrus_images/c0f2acd9638a69a1e751bb6ccf61ead156792dfaeb76566bd264356aa4b4cb8b.jpg)

6/ Last step Click on the Eth Logo and select the wallet connection metamask, remember to switch to #Scorll network then deploy and pay 0.3$ Scroll network fee.

![](https://storage.googleapis.com/papyrus_images/0116944406b04e974830883559202f3529e141051e6479e019a6603449cea280.jpg)

7/ Check to see if you qualify:

[https://scroll.io/developer-nft/check-eligibility](https://scroll.io/developer-nft/check-eligibility)

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

---

*Originally published on [hatake](https://paragraph.com/@hatake/instructions-for-deploy-contrac)*
