Table of Contents
- Overview of the Contract
- Overview of the Script
- Parameters
counter_contract_id
clear_count
- Parameters
The contract has an internal variable count
that can be retrieved or manipulated by the user based on the methods called.
This sub-section details what a user is able to do e.g. click a button and "x, y, z" happens.
Increases the internal count variable by 1.
Sets the internal count variable to 0.
This sub-section details the information that a user should have access to / what the application provides to them e.g. a history of their previous actions.
Returns the current value of the internal count
variable.
The script demonstrates how to interact with a simple contract, with conditional execution and returning of values.
The script contains two input parameters
This is the ContractId of the counter contract that we want to interact with
This is a boolean value which determines if the script should call the clear
method at the end of the script execution