Entropy-Foundation / aptos-core

Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.
https://aptoslabs.com
Other
0 stars 2 forks source link

Format move code using aptos movefmt #115

Open axiongsupra opened 3 weeks ago

axiongsupra commented 3 weeks ago

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"
}