Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 3 unit tests, Refactored 1 test in test_swap_handler.cairo #603

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

Akinbola247
Copy link
Contributor

@Akinbola247 Akinbola247 commented Jan 15, 2024

This PR is with respect to this issue #493
Please add the labels corresponding to the type of changes your PR introduces:

  • Testing

Given normal conditions, all tests are passing.

Below are my findings :

  1. if (_params.receiver != _params.market.market_token) {

    when this condition (_params.receiver != _params.market.market_token) in the if statement block is being satisfied, it returns [input to long for argument] error.

  2. if (_params.token_in != _params.market.long_token
    when this condition (_params.token_in != _params.market.long_token && _params.token_in != _params.market.short_token) in the if statement block is being satisfied, program crashes and runs into a panic error

@Sk8erboi84 Sk8erboi84 merged commit d032c38 into keep-starknet-strange:main Jan 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants