-
Notifications
You must be signed in to change notification settings - Fork 72
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
Testing - First PR for issue #476 #572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix the scarb fmt please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
ok, on it now. |
done, kindly check and review |
tests/adl/test_adl_utils.cairo
Outdated
size_delta_usd: 0, | ||
updated_at_block: 100 | ||
}; | ||
adl_utils::create_adl_order(params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check that adl_order is stored in the data_store and that you can retrieve it
tests/adl/test_adl_utils.cairo
Outdated
size_delta_usd: 0, | ||
updated_at_block: 100 | ||
}; | ||
adl_utils::create_adl_order(params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adl_utils::create_adl_order(params); | |
let key = adl_utils::create_adl_order(params); | |
// Assertions | |
let order = data_store.get_order(key); | |
assert(order.account == account1, 'wrong order'); | |
assert(order.order_type == OrderType::MarketDecrease(()), 'wrong type'); | |
assert(order.updated_at_block == 100, 'wrong updated'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, fixing that now, is that all the changes that's needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve conflicts then it will be good !
hi @zarboq , i synced the fork and realized it closed the pr, so sorry about that, here's the link to the new pr with all conflicts resolved, thanks |
Pull Request type
Please add the labels corresponding to the type of changes your PR introduces:
What is the current behavior?
Resolves: #NA
What is the new behavior?
Does this introduce a breaking change?
Other information