# Hướng dẫn deploy contract trên hệ sinh thái Zksync Era **Published by:** [FFCRYPTO COMMUNITY](https://paragraph.com/@ffcrypto/) **Published on:** 2023-06-02 **URL:** https://paragraph.com/@ffcrypto/huong-dan-deploy-contract-tren-he-sinh-thai-zksync-era ## Content LƯU Ý: KHÔNG NÊN SỬ DỤNG VÍ CHÍNH CHUYÊN SĂN RETRO ĐỂ TEST KÈO DÙNG VÍ PHỤ Phần hướng dẫn được thực hiện dựa trên tài liệu của team NFD và chỉnh sửa by SnowFlower9xTải các phần mềm hỗ trợ việc deployDownload VS Code và cài đặtDownload NodeJS và cài đặt (quá trình này sẽ mất kha khá thời gian)Tải file deploy contracts: https: /github.com/ZAZIK3/zksync-era-deployTruy cập link chọn vào Code => Download ZIP => Lưu file sau đó giải nén file ra 1 folder riêngTương tác với VS CODEMở phần mềm VS CODEClick File => Open FolderChọn vào thư mục lưu file deploy vừa lưu xuống ở bước 1Cài đặt Extension Solidity: File => Preferences => ExtensionsỞ ô tìm kiếm gõ vào SolidityẤn vào InstallMở bảng TerminalClick vào file .Secret điền private key sau dòng 0x sau đó ấn SaveỞ ô Terminal gõ lệnh sau: npx hardhat compileKết quả thành công "Successfully compiled 1 Solidity file".Tiếp tục gõ tiếp lệnh sau: npx hardhat deploy-zksyncContracts được deploy như hình dưới, copy contracts chuẩn bị cho bước tiếpVerify contractsTruy cập link sau: https: /explorer.zksync.io/Gõ contracts đã deploy vào ô tìm kiếmContracts chưa verifyClick vào ContractsClick Verify Smart ContractCopy dòng code dưới đây: //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0;contract Greeter { string private greeting; constructor(string memory greeting) { greeting = greeting; } function greet() public view returns (string memory) { return greeting; } function setGreeting(string memory greeting) public { greeting = greeting; } }Điền các thông số sau:Zksolc Verision: v1.3.5Solc Version: 0.8.17Contracts Name: GreeterEnter the Solidity Contract Code: Điền dòng code copy phía trênDòng Contstructor Arguments điền như sau:0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000094869207468657265210000000000000000000000000000000000000000000000Click Verify Smart ContractDone ## Publication Information - [FFCRYPTO COMMUNITY](https://paragraph.com/@ffcrypto/): Publication homepage - [All Posts](https://paragraph.com/@ffcrypto/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@ffcrypto): Subscribe to updates - [Twitter](https://twitter.com/thanhva5373382): Follow on Twitter ## Optional - [Collect as NFT](https://paragraph.com/@ffcrypto/huong-dan-deploy-contract-tren-he-sinh-thai-zksync-era): Support the author by collecting this post - [View Collectors](https://paragraph.com/@ffcrypto/huong-dan-deploy-contract-tren-he-sinh-thai-zksync-era/collectors): See who has collected this post