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

Testing - First PR for issue #476 #572

Closed
wants to merge 0 commits into from

Conversation

faytey
Copy link
Contributor

@faytey faytey commented Nov 1, 2023

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing
  • Other (please describe):

What is the current behavior?

Resolves: #NA

What is the new behavior?

Does this introduce a breaking change?

Other information

@faytey faytey requested a review from AbdelStark as a code owner November 1, 2023 11:45
Copy link
Collaborator

@Sk8erboi84 Sk8erboi84 left a 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

Copy link
Collaborator

@Sk8erboi84 Sk8erboi84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@faytey
Copy link
Contributor Author

faytey commented Nov 2, 2023

ok, on it now.

@faytey
Copy link
Contributor Author

faytey commented Nov 2, 2023

done, kindly check and review

size_delta_usd: 0,
updated_at_block: 100
};
adl_utils::create_adl_order(params);
Copy link
Collaborator

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

size_delta_usd: 0,
updated_at_block: 100
};
adl_utils::create_adl_order(params);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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');

Copy link
Contributor Author

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.

Copy link
Collaborator

@zarboq zarboq left a 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 !

@faytey
Copy link
Contributor Author

faytey commented Nov 3, 2023

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

@faytey
Copy link
Contributor Author

faytey commented Nov 3, 2023

#578

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.

3 participants