These examples show how to build common tasks in Javascript and Typescript.
These examples use a linked version of the aptos package from the main repository. To run a test, first build the
package in the top level directory of this repo.
pnpm buildAt this point, you can run any of the examples in this directory. For example, to run the simple_transfer example:
cd examples/javascript
pnpm install
pnpm run simple_transferThis will then print out the results of the test accordingly.
Simply just replace the line in the associated package.json file:
"aptos": "link:../../.."with the appropriate version e.g.:
"aptos": "latest"You should be able then simply run:
pnpm install
pnpm test