In Aptos CLI Release v4.1.0, move code have offical formatter and I would like to promote the use of it to help do review.
The command is aptos move fmt. If you encounter the following error, please do aptos update movefmt
{
"Error": "Unexpected error: Cannot locate the movefmt executable. Environment variable `FORMATTER_EXE` is not set, and `movefmt` is not in the PATH. Try running `aptos update movefmt` to download it and then updating the environment variable `FORMATTER_EXE` or adding the executable to PATH"
}
In Aptos CLI Release v4.1.0, move code have offical formatter and I would like to promote the use of it to help do review.
The command is
aptos move fmt
. If you encounter the following error, please doaptos update movefmt