Skip to content

Improve upgrade tests by managing contracts state #560

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

Open
fbac opened this issue Feb 27, 2025 · 0 comments
Open

Improve upgrade tests by managing contracts state #560

fbac opened this issue Feb 27, 2025 · 0 comments
Labels
testing E2E or upgrade tests

Comments

@fbac
Copy link
Collaborator

fbac commented Feb 27, 2025

Problem statement

Currently the upgrade test don't deploy or upgrade contracts, instead they rely on the blockchain status blindly.
If an upgrade requires new contracts to be deployed, or an old ABI has changed, the upgrade test fails.

Expected behavior

Upgrade test is able to deploy, upgrade or re-deploy the needed contracts introduced on each version.
A naive flow would be:

old version test start
- deploy needed contracts.
- load envVars.
- test

new version test start
- deploy new contracts if any.
- upgrade existing contracts if there's an upgrade script available.
- load envVars again, as an old envVar could be overridden by a new contract address.
- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing E2E or upgrade tests
Projects
Status: Todo
Development

No branches or pull requests

1 participant