Test
In this section, we will test the functionality of the Rust front-end application by interacting with the counter contract. These tests will verify that the application can:
- Correctly read the current state of the contract.
- Submit valid solutions to modify the contract’s state.
- Confirm that state changes are processed accurately.
Each test will focus on a specific aspect of interacting with the contract, ensuring that the front-end functions as expected and communicates correctly with the contract.
The following section will be written in:
counter/
└── counter-app/
└── tests/
└── test.rs