NEAR-DevHub / neardevhub-contract

DevHub Portal Product Contract (Hosted on NEAR Blockchain) – Includes other instances (e.g. Infrastructure, Events)
https://neardevhub.org
19 stars 15 forks source link

Introduce a test to verify that latest StateVersion is applied to new contract deployments #71

Open petersalomonsen opened 1 year ago

petersalomonsen commented 1 year ago

In order to prevent the scenario described in https://github.com/near/neardevhub-contract/issues/69 to happen again, we should introduce a test to verify that the new method of lib.rs initialize the contract with the latest StateVersion.

Without such a test it is very likely that developers will break the migration test again because of forgetting to update the StateVersion also for new contract deployments.

The consequence of breaking the migration test is first of all that it's blocking PRs that follows.