# Scroll smart contract in the Scroll Alpha Testnet network **Published by:** [CryptoProfit](https://paragraph.com/@cryptoprofit/) **Published on:** 2023-03-10 **URL:** https://paragraph.com/@cryptoprofit/scroll-smart-contract-in-the-scroll-alpha-testnet-network ## Content We go to the site and connect our metamask wallet in the Scroll Alpha network herehttps://remyh.etgereum.org/ Next, click on the icon (1), give a name to the contract, for example Scroll and be sure to put a dot and add .sol (2) and click on any part under our inscription with the left mouse buttonCopying the code:// 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; } }We return to the site, left-click in the black box in the center of the screen and press CTRL + V (paste the copied code) and click OK on the message that appears:Then press the key combination CTRL + S (if you do everything with Windows) and Command + S (for Mac) after which you should see a green check mark on the left, go to this item:In the upper field, change the compiler version to the newest (1) and click the Compile button (2):If everything is done correctly, you should see a green checkmark:Now we go to the lowest menu item (1), in item (2) Injected Provider - Metamask should be selected, in item (3) your Metamask wallet should be pulled uppress the Deploy button (1) and sign the transaction in our wallet by clicking the Approve button(2):After a few seconds, our smart contract is deployed, in confirmation of this, we should see a green inscription at the bottom of the screen:Everyone, congratulations! We have successfully deployed the Scroll smart contract on the Alpha network! ## Publication Information - [CryptoProfit](https://paragraph.com/@cryptoprofit/): Publication homepage - [All Posts](https://paragraph.com/@cryptoprofit/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@cryptoprofit): Subscribe to updates