# Scroll测试网交互：合约部署

By [Xiyuma.eth](https://paragraph.com/@xiyuma) · 2022-11-22

---

1.  **环境准备**
    
    1）服务器：Ubuntu
    
    2.  环境配置：[安装nodejs](https://nodejs.org/en/download/) 安装 [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable)
        
2.  安装scroll
    
    `git clone https://github.com/scroll-tech/scroll-contract-deploy-demo.git`
    
    `cd scroll-contract-deploy-demo`
    
    `yarn install`
    
3.  部署合约
    
    1）编译
    
    `yarn compile`
    
    2）部署
    
    yarn deploy:scrollTestnet
    
    3.  测试

---

*Originally published on [Xiyuma.eth](https://paragraph.com/@xiyuma/scroll)*
