Closed enitrat closed 1 month ago
Please I will like to work on this issue when the OD hack commences @enitrat
Hi @ShantelPeters! Maintainers during the ODHack # 8.0 will be tracking applications via OnlyDust. Therefore, in order for you to have a chance at being assigned to this issue, please apply directly here, or else your application may not be considered.
I am applying to this issue via OnlyDust platform.
I am a Full Stack developer with 6 years of experience in the industry, I am super excited to be able to contribute to Web 3 projects, this to continue paving my way as an Open Source Contributor. I am from Dojo Coding Community
I have contributed to the Kakarot RPC in the past but not to SSJ and I would like to make my first contribution to this ODHack issue.
I am applying to this issue via OnlyDust platform.
I'm a Full Stack Developer with two years of experience. I’m also an active member of Dojo Coding, where I'm expanding my skills in Cairo and Web3 technologies. I have previously worked on an issue involving the creation of unit tests in cairo, so I am familiar with the snforge_std cheatcodes and other necessary functions for testing. I’m eager to learn, contribute, and be part of this project.
To solve this issue, I would:
Follow your proposal: Based on your pseudocode, I will write a unit test with N events to thoroughly test the code.
Verify test coverage: I will ensure that the test works correctly and covers all functionality.
Document my code: Finally, I will document my code for clarity and future reference.
The maintainer enitrat has assigned DiegoB1911 to this issue via OnlyDust Platform. Good luck!
Thank you for assigning me the issue. I will start working on it.
https://github.com/kkrt-labs/kakarot-ssj/blob/fed455472079dd30db36a9bce56328d05ff8ce9c/crates/evm/src/backend/starknet_backend.cairo#L215-L226
Add unit testing for the
emit_events
function. One single case with N events is sufficient to test multiple cases; e.g (pseudocode):Reference of how to use assert_emitted in a local testing context
https://github.com/kkrt-labs/kakarot-ssj/blob/fed455472079dd30db36a9bce56328d05ff8ce9c/crates/contracts/tests/test_ownable.cairo#L125-L146