Using Sui CLI
If you are a Sui developer, you can deploy to our Network with some minor changes to your workflow.
Initialize your environment
Initialize your Sui profile for your package development and add M2.
Now switch to the M2 environment:
You can now set your development environment with the following sequence of commands:
Inside hello_wolrd.move
you can paste the following code:
After building your project, you can deploy it to the M2 testnet:
The object ID under the Published Objects
section is the ID of your module. You can now call the mint
function on your module with that object ID:
Don't forget to replace <package object ID>
with the object ID of your module from previous console output!
Congratulations! You have just written, published, and executed your Sui module on the Movement Network!
Make sure to take a look at our Movement CLI. Includes but not limited to the Sui CLI.
Last updated