编写并发布一个智能合约到Aptos
编写并发布一个智能合约到Aptos
新建项目文件夹并初始化
mkdir fist-aptos-module
cd first-aptos-module
aptos move init --name first-aptos-module编写合约代码
module myAccount::first_aptos_module {
struct Coin has key {
value: u64
}
public fun mint(account: signer, value: u64) {
move_to(&account, Coin { value })
}
}配置toml文件
发布合约到Aptos 开发网
发布合约到Aptos 主网
Last updated

