教程目标通过一系列循序渐进的练习,掌握Move语言的核心概念和Sui区块链开发技能。run第一个00_intro入门。
powershell
module intro::intro {
public fun hello_move(): vector<u8> {
b"Hello, Move!"
}
}
00_intro/tests/intro_tests.move,这是测试文件,对返回的字符串进行校验
fun test_hello_world() {
let result = hello_move();//调用hello_move方法
assert!(result == b"Hello, Move!", 0);//进行断言判断
}
}
祝各位玩的开心。
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!