Skip to content

Commit

Permalink
add statement for copying code
Browse files Browse the repository at this point in the history
  • Loading branch information
vita-dounai committed Mar 30, 2021
1 parent 322c71a commit 77936b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/dev_testing/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ hello_world/

- `lib.rs`:Liquid 智能合约项目根文件,合约代码存放于此文件中。智能合约项目创建完毕后,`lib.rs`文件中会自动填充部分样板代码,我们可以基于这些样板代码做进一步的开发。

我们将[HelloWorld 合约](../quickstart/example.html#hello-world)中的代码复制至`lib.rs`文件中后,便可进行后续步骤。

## 测试

在正式部署之前,在本地对智能合约进行详尽的单元测试是一种良好的开发习惯。Liquid 内置了对区块链链上环境的模拟,因此即使不将智能合约部署上链,也能够在本地方便地执行单元测试。在 hello_world 项目根目录下执行以下命令即可执行我们预先编写好的单元测试用例:
Expand Down

0 comments on commit 77936b2

Please sign in to comment.