Your First Move Contract
Create and deploy your first move module.
3
Create a new move file within the sources
directory.
sources
directory.The sources directory holds the move modules that you will be working on within your project. For this example, we will create example.move
with the following code.
The two_by_two
function will transfer the passed amount to both addresses passed as arguments.
example.move
6
Deploy your package
Please note that the module will be deployed at the address that we outlined through the named addresses within the move.toml
file.
For the latest RPC URL, please refer to the Supra Network Information page.
Last updated