The main function of the script can have arguments and will be executed when you send a transaction with your script.

With dove ct command you can pass arguments to script function and build it, see help:

dove ct --help

Calling the main function, developers can pass arguments, example:

dove ct 'my_script(1, [1, 2, 3], 1exaAg2VJRQbyUBAeXcktChCAqjVP9TUxF3zo23R2T6EGdE, false)'

The command compiles both script file and adds arguments into one file with *.mvt extension. The file could be used to send execute (script one) transaction to the network.

From example you can see that dove "ct" command supports different kind of arguments, as:

  • Numbers (u8, u64, u128).

  • Boolean.

  • Addresses.

  • Vectors.