You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -172,13 +172,12 @@ This example demonstrates key aspects of testing with `algorand-typescript-testi
172
172
173
173
- Use of `arc4.Contract` as the base class for the contract.
174
174
- ABI methods defined using the `@arc4.abimethod` decorator.
175
-
- Use of ARC4-specific types like `arc4.Str`, `arc4.Bool`, and `arc4.UintN64`.
176
175
- Readonly method annotation with `@arc4.abimethod({readonly: true})`.
177
176
178
177
2. Testing ARC4 Contracts:
179
178
180
179
- Creation of an `arc4.Contract` instance within the test context.
181
-
- Use of `ctx.any.arc4` for generating ARC4-specific random test data.
180
+
- Use of `ctx.any` for generating random test data.
182
181
- Direct invocation of ABI methods on the contract instance.
183
182
184
183
3. Transaction Handling:
@@ -188,7 +187,7 @@ This example demonstrates key aspects of testing with `algorand-typescript-testi
188
187
189
188
4. State Verification:
190
189
- Checking global and local state changes after method execution.
191
-
- Verifying return values from ABI methods using ARC4-specific types.
190
+
- Verifying return values from ABI methods.
192
191
193
192
> **NOTE**: Thorough testing is crucial in smart contract development due to their immutable nature post-deployment. Comprehensive unit and integration tests ensure contract validity and reliability. Optimizing for efficiency can significantly improve user experience by reducing transaction fees and simplifying interactions. Investing in robust testing and optimization practices is crucial and offers many benefits in the long run.
0 commit comments