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

Update tests for upgrade #44

Open
princearoragithub opened this issue Nov 14, 2023 · 0 comments · May be fixed by #45
Open

Update tests for upgrade #44

princearoragithub opened this issue Nov 14, 2023 · 0 comments · May be fixed by #45

Comments

@princearoragithub
Copy link
Contributor

For Cairo 2.x implementation, the contracts will remain upgradeable for some time. Write tests for following scenarios:

  1. Upgrade Factory contract from cairo 0.x to latest.
  2. Update pair class hash (for the latest Pair contract) in the factory contract.
  3. Create a pair after 1) and 2).
  4. Upgrade Router contract from cairo 0.x to latest.
  5. Upgrade all the Pair contracts from cairo 0.x to latest.
  6. Check owner is correct after each upgrade.
  7. Check upgrades are possible after upgrade.

Run these tests on mainnet fork as well.

@szymcio32 szymcio32 linked a pull request Nov 23, 2023 that will close this issue
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 a pull request may close this issue.

1 participant