Set-Up
Installing IDE and environment setup.
Install Move IDE
To install it you'll need:
VSCode (version 1.43.0 and above) - you can get it here; if you already have one - proceed to the next step;
Move-Analyzer IDE - once VSCode is installed, follow this link to install the newest version of IDE.
Install Aptos CLI
You can get it here.
Running code using aptos CLI:
Firstly you folder structure should be like this:
move_project
|-sources
|-first.move
|Move.tomlfirst.move:
module my_addrx::Sample
{
use std::debug;
fun sample_function()
{
debug::print(&12345);
}
#[test]
fun testing()
{
sample_function();
}
}Move.toml:
Compile the module:
Run aptos move compile in vscode terminal for compiling the module.
Test the module:
Run aptos move test in vscode terminal for running the unit test.
Last updated