This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
dev: test util in indexer to generate Starknet calldata #1417
Labels
enhancement
Enhancement of the code, not introducing new features.
Description
In our Typescript indexer, we should introduce a utility function that generates random StarkNet calldata, providing a comprehensible implementation for each element of the array.
Currently, all the tests passes, but it's difficult to understand how the calldata is constructed and whether it is correct or not. The goal is to make this process more transparent and accessible.
Expected Feature
We need a function that:
to
, etc.).By having a clear and reusable utility function, we can ensure that the test cases are easier to understand, and contributors can generate calldata reliably without needing deep knowledge of the internals.
Additional Context
This utility function will help improve the clarity of the test suite, making it easier for developers to construct valid calldata and reducing the potential for errors.
We should replace the existing test calldatas by call to this function.
Related #1414 (comment)
The text was updated successfully, but these errors were encountered: